Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ jobs:
!examples/nunit/src/NUnitFramework/framework/Internal/Results/TestResult.cs
!examples/nunit/src/NUnitFramework/framework/Internal/TestExecutionContext.cs
!examples/nunit/src/NUnitFramework/nunitlite/Options.cs
!examples/nunit/src/NUnitFramework/testdata/TestCaseAttributeFixture.cs
!examples/nunit/src/NUnitFramework/tests/Assertions/WarningTests.cs
!examples/nunit/src/NUnitFramework/tests/Attributes/ApartmentAttributeTests.cs
!examples/nunit/src/NUnitFramework/tests/Attributes/DerivedPropertyAttributeTests.cs
Expand All @@ -138,3 +139,4 @@ jobs:
!examples/nunit/src/NUnitFramework/tests/Internal/EventQueueTests.cs
!examples/nunit/src/NUnitFramework/tests/SynchronizationContextTests.cs
!examples/nunit/src/NUnitFramework/tests/Syntax/PathConstraintTests.cs
!examples/nunit/src/NUnitFramework/windows-tests/SynchronizationContextTests.cs
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
path = "bindings/rust/lib.rs"

[dependencies]
tree-sitter = ">=0.21.0"
tree-sitter-language = "0.1.0"

[build-dependencies]
cc = "1.0.96"

[dev-dependencies]
tree-sitter = "0.23"
4 changes: 2 additions & 2 deletions bindings/go/binding_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions bindings/go/go.mod

This file was deleted.

9 changes: 9 additions & 0 deletions bindings/node/binding_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions bindings/python/tests/test_binding.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions bindings/python/tree_sitter_c_sharp/binding.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 10 additions & 11 deletions bindings/rust/lib.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions bindings/swift/TreeSitterCSharp/c_sharp.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions bindings/swift/TreeSitterCSharpTests/TreeSitterCSharpTests.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module github.com/tree-sitter/tree-sitter-c_sharp

go 1.23

require github.com/tree-sitter/go-tree-sitter v0.23.1

require github.com/mattn/go-pointer v0.0.1 // indirect
15 changes: 11 additions & 4 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ module.exports = grammar({
$.preproc_pragma,
$.preproc_nullable,
$.preproc_error,
$.preproc_warning,
$.preproc_define,
$.preproc_undef,
],
Expand Down Expand Up @@ -1496,15 +1497,15 @@ module.exports = grammar({
interpolated_string_expression: $ => choice(
seq(
alias($.interpolation_regular_start, $.interpolation_start),
'"',
alias($.interpolation_start_quote, '"'),
repeat($._interpolated_string_content),
'"',
alias($.interpolation_end_quote, '"'),
),
seq(
alias($.interpolation_verbatim_start, $.interpolation_start),
'"',
alias($.interpolation_start_quote, '"'),
repeat($._interpolated_verbatim_string_content),
'"',
alias($.interpolation_end_quote, '"'),
),
seq(
alias($.interpolation_raw_start, $.interpolation_start),
Expand Down Expand Up @@ -1963,6 +1964,12 @@ module.exports = grammar({
/\n/,
),

preproc_warning: $ => seq(
preprocessor('warning'),
$.preproc_arg,
/\n/,
),

preproc_define: $ => seq(
preprocessor('define'),
$.preproc_arg,
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@
},
"scripts": {
"install": "node-gyp-build",
"prebuildify": "prebuildify --napi --strip",
"build": "tree-sitter generate --no-bindings",
"build-wasm": "tree-sitter build --wasm",
"lint": "eslint grammar.js",
"parse": "tree-sitter parse",
"test": "tree-sitter test"
"prestart": "tree-sitter build --wasm",
"start": "tree-sitter playground",
"test": "node --test bindings/node/*_test.js"
},
"tree-sitter": [
{
Expand Down
Loading