Giter Site home page Giter Site logo

Comments (3)

amaanq avatar amaanq commented on July 23, 2024 1

updated, I hadn't even noticed the 4 quotes nor was it mentioned on the MS docs, but I found a different page that briefly mentioned it, thanks

from tree-sitter-c-sharp.

damieng avatar damieng commented on July 23, 2024

I suspect we're also going to need an external scanner for XML doc literals.

from tree-sitter-c-sharp.

tamasvajk avatar tamasvajk commented on July 23, 2024

@amaanq I see that #333 will close this issue, but I don't think the issue is completely solved. I'm getting the below tree on the above code fragment:

❯ tree-sitter parse a.cs
(compilation_unit [0, 0] - [10, 28]
  (global_statement [0, 0] - [0, 10]
    (local_declaration_statement [0, 0] - [0, 10]
      (variable_declaration [0, 0] - [0, 9]
        type: (predefined_type [0, 0] - [0, 3])
        (variable_declarator [0, 4] - [0, 9]
          name: (identifier [0, 4] - [0, 5])
          (integer_literal [0, 8] - [0, 9])))))
  (global_statement [1, 0] - [4, 7]
    (local_declaration_statement [1, 0] - [4, 7]
      (variable_declaration [1, 0] - [4, 7]
        type: (implicit_type [1, 0] - [1, 3])
        (variable_declarator [1, 4] - [4, 7]
          name: (identifier [1, 4] - [1, 5])
          (interpolated_string_expression [1, 8] - [4, 7]
            (interpolation_dollar [1, 8] - [1, 10])
            (string_content [1, 13] - [3, 4])
            (string_content [3, 4] - [4, 4]))))))
  (ERROR [5, 4] - [9, 9]
    (initializer_expression [5, 4] - [5, 9]
      (initializer_expression [5, 5] - [5, 8]
        (identifier [5, 6] - [5, 7]))))
  (global_statement [10, 0] - [10, 28]
    (local_declaration_statement [10, 0] - [10, 28]
      (variable_declaration [10, 0] - [10, 27]
        type: (qualified_name [10, 0] - [10, 24]
          qualifier: (qualified_name [10, 0] - [10, 14]
            qualifier: (identifier [10, 0] - [10, 6])
            name: (identifier [10, 7] - [10, 14]))
          name: (identifier [10, 15] - [10, 24]))
        (variable_declarator [10, 24] - [10, 27]
          (tuple_pattern [10, 24] - [10, 27]
            name: (identifier [10, 25] - [10, 26])))))))
a.cs    0 ms    (MISSING ";" [4, 7] - [4, 7])

from tree-sitter-c-sharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.