tree-sitter-c-sharp
Advanced tools
Comparing version 0.21.1 to 0.21.2
@@ -105,2 +105,5 @@ /** | ||
$.interpolation_string_content, | ||
$.raw_string_start, | ||
$.raw_string_end, | ||
$.raw_string_content, | ||
], | ||
@@ -391,3 +394,3 @@ | ||
base_list: $ => seq(':', commaSep1($.type)), | ||
base_list: $ => seq(':', commaSep1(seq($.type, optional($.argument_list)))), | ||
@@ -896,3 +899,2 @@ type_parameter_constraints_clause: $ => seq( | ||
$.local_function_statement, | ||
// alias($.preproc_if_in_statement, $.preproc_if), | ||
alias($.preproc_if_in_top_level, $.preproc_if), | ||
@@ -1213,2 +1215,3 @@ )), | ||
non_lvalue_expression: $ => choice( | ||
'base', | ||
$.binary_expression, | ||
@@ -1742,6 +1745,8 @@ $.interpolated_string_expression, | ||
'\'', | ||
choice(token.immediate(/[^'\\]/), $.escape_sequence), | ||
choice($.character_literal_content, $.escape_sequence), | ||
'\'', | ||
), | ||
character_literal_content: $ => token.immediate(/[^'\\]/), | ||
integer_literal: _ => token(seq( | ||
@@ -1819,8 +1824,8 @@ choice( | ||
raw_string_literal: _ => token(seq( | ||
/""["]+/, | ||
optional(/([^"]|("[^"])|(""[^"]))+/), | ||
/""["]+/, | ||
raw_string_literal: $ => seq( | ||
$.raw_string_start, | ||
$.raw_string_content, | ||
$.raw_string_end, | ||
optional(stringEncoding), | ||
)), | ||
), | ||
@@ -1865,3 +1870,2 @@ boolean_literal: _ => choice('true', 'false'), | ||
...preprocIf('_in_expression', $ => $.expression, -2, false), | ||
// ...preprocIf('_in_statement', $ => $.statement, -1), | ||
...preprocIf('_in_enum_member_declaration', $ => $.enum_member_declaration, 0, false), | ||
@@ -1868,0 +1872,0 @@ |
{ | ||
"name": "tree-sitter-c-sharp", | ||
"version": "0.21.1", | ||
"version": "0.21.2", | ||
"description": "C# grammar for tree-sitter", | ||
"repository": "github:tree-sitter/tree-sitter-rust", | ||
"repository": "github:tree-sitter/tree-sitter-c-sharp", | ||
"license": "MIT", | ||
"author": "Max Brunsfeld <maxbrunsfeld@gmail.com", | ||
"author": "Max Brunsfeld <maxbrunsfeld@gmail.com>", | ||
"contributors": [ | ||
@@ -48,3 +48,3 @@ "Damien Guard <damieng@gmail.com>", | ||
"eslint-config-google": "^0.14.0", | ||
"tree-sitter-cli": "^0.22.5", | ||
"tree-sitter-cli": "^0.22.6", | ||
"prebuildify": "^6.0.1" | ||
@@ -51,0 +51,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
56691879
20385