@willbooster/tree-sitter-c-sharp 8.0.4 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/grammar.js +2 -1
- package/package.json +6 -6
- package/src/node-types.json +34 -0
- package/tree-sitter-c_sharp.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/WillBooster/tree-sitter-c-sharp/actions/workflows/test.yml)
|
|
6
6
|
[](https://github.com/WillBooster/tree-sitter-c-sharp/actions/workflows/test-rust.yml)
|
|
7
7
|
[](https://github.com/semantic-release/semantic-release)
|
|
8
|
-
[](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
|
|
9
9
|
[](https://crates.io/crates/willbooster-tree-sitter-c-sharp)
|
|
10
10
|
|
|
11
11
|
C# grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
|
package/grammar.js
CHANGED
|
@@ -393,7 +393,8 @@ module.exports = grammar({
|
|
|
393
393
|
namespace_declaration: ($) =>
|
|
394
394
|
seq('namespace', field('name', $._name), field('body', $.declaration_list), sym('_optional_semi')),
|
|
395
395
|
|
|
396
|
-
file_scoped_namespace_declaration: ($) =>
|
|
396
|
+
file_scoped_namespace_declaration: ($) =>
|
|
397
|
+
prec.right(seq('namespace', field('name', $._name), statementEnd(), repeat($._top_level_item_no_statement))),
|
|
397
398
|
|
|
398
399
|
type_declaration: ($) =>
|
|
399
400
|
choice(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-c-sharp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "C# grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@tsconfig/bun": "1.0.11",
|
|
46
|
-
"@types/bun": "1.4.
|
|
46
|
+
"@types/bun": "1.4.3",
|
|
47
47
|
"@vitest/browser-playwright": "5.0.3",
|
|
48
48
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
49
49
|
"@willbooster/oxlint-config": "1.4.8",
|
|
50
|
-
"@willbooster/wb": "22.26.
|
|
50
|
+
"@willbooster/wb": "22.26.2",
|
|
51
51
|
"@willbooster/web-tree-sitter": "7.0.20",
|
|
52
52
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
53
|
-
"lefthook": "2.2.
|
|
54
|
-
"oxfmt": "0.
|
|
55
|
-
"oxlint": "1.
|
|
53
|
+
"lefthook": "2.2.2",
|
|
54
|
+
"oxfmt": "0.73.0",
|
|
55
|
+
"oxlint": "1.88.0",
|
|
56
56
|
"oxlint-tsgolint": "7.0.2004",
|
|
57
57
|
"playwright": "1.64.0",
|
|
58
58
|
"semantic-release": "25.0.9",
|
package/src/node-types.json
CHANGED
|
@@ -3633,6 +3633,40 @@
|
|
|
3633
3633
|
}
|
|
3634
3634
|
]
|
|
3635
3635
|
}
|
|
3636
|
+
},
|
|
3637
|
+
"children": {
|
|
3638
|
+
"multiple": true,
|
|
3639
|
+
"required": false,
|
|
3640
|
+
"types": [
|
|
3641
|
+
{
|
|
3642
|
+
"type": "extern_alias_directive",
|
|
3643
|
+
"named": true
|
|
3644
|
+
},
|
|
3645
|
+
{
|
|
3646
|
+
"type": "file_scoped_namespace_declaration",
|
|
3647
|
+
"named": true
|
|
3648
|
+
},
|
|
3649
|
+
{
|
|
3650
|
+
"type": "global_attribute",
|
|
3651
|
+
"named": true
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
"type": "namespace_declaration",
|
|
3655
|
+
"named": true
|
|
3656
|
+
},
|
|
3657
|
+
{
|
|
3658
|
+
"type": "preproc_if",
|
|
3659
|
+
"named": true
|
|
3660
|
+
},
|
|
3661
|
+
{
|
|
3662
|
+
"type": "type_declaration",
|
|
3663
|
+
"named": true
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
"type": "using_directive",
|
|
3667
|
+
"named": true
|
|
3668
|
+
}
|
|
3669
|
+
]
|
|
3636
3670
|
}
|
|
3637
3671
|
},
|
|
3638
3672
|
{
|
package/tree-sitter-c_sharp.wasm
CHANGED
|
Binary file
|