Comments (4)
Looks like there’s some prior attempts at this in the code: this rule takes a stab at implementing this syntax description, but it’s commented out at the use site:
recursive_pattern: $ => seq(
optional($._type),
optional($.positional_pattern_clause),
optional($.property_pattern_clause),
optional($._variable_designation)
),
from tree-sitter-c-sharp.
There were some areas around patterns that I just couldn't figure out the conflict or associative rules for to get things working -
I suspect that was one of them.
from tree-sitter-c-sharp.
I think this is really a dupe of #19
from tree-sitter-c-sharp.
So it is. Closing in favor of #19.
from tree-sitter-c-sharp.
Related Issues (20)
- C# 11 file scoped types
- C# 11 scoped ref declarations
- Can we improve the highlight groups? HOT 5
- Parsing failure in CSharp script (.csx) file with `#r` directives HOT 2
- nameof() expressions have no distinct exported tree-node, but are instead reported as invocation_expressions HOT 2
- Generic type in declaration parsed as binary expression
- Improve type parsing HOT 2
- Fix parsing UTF-16 files HOT 2
- Fix `record_base` to allow generic types and generic constructor calls HOT 3
- Add support for C# 11 unsigned right shift operator HOT 1
- Move `src/parser.c` to git LFS HOT 19
- Allow contextual keywords to be used as identifiers HOT 4
- Improve pattern parsing HOT 2
- Improve interpolated raw string literal parsing HOT 3
- 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
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.