Comments (3)
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.
I suspect we're also going to need an external scanner for XML doc literals.
from tree-sitter-c-sharp.
@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)
- Add support for C# 11 unsigned right shift operator HOT 1
- Move `src/parser.c` to git LFS HOT 24
- Allow contextual keywords to be used as identifiers HOT 4
- Improve pattern parsing HOT 2
- Improve declaration expression parsing HOT 1
- Generic methods not highlighted correctly HOT 9
- Improve `#pragma` parsing
- Unhide _preprocessor_call
- Fix `is_expression` and `is_pattern_expression` parsing
- Parser errors on malformed C# code different in playground HOT 2
- Indentation Support? HOT 2
- multiline Lambda expression'a don't indent well HOT 1
- Highlight members within a class differently than local variables HOT 1
- Using statement with a function call with parameters is not parsed as invocation, instead a variable declaration HOT 4
- Parse error classes with primary constructors (C#12, Dotnet 8 LTS) HOT 3
- Release 0.21 compatible version
- Support primary constructor HOT 1
- `file_scoped_namespace_declaration` range output different to `namespace_declaration` range
- Types without curly braces are lacking support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tree-sitter-c-sharp.