diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/c-sharp/highlights.scm | 15 | ||||
-rw-r--r-- | runtime/queries/c-sharp/textobjects.scm | 21 |
2 files changed, 34 insertions, 2 deletions
diff --git a/runtime/queries/c-sharp/highlights.scm b/runtime/queries/c-sharp/highlights.scm index 6b94dd8c..dbb7c778 100644 --- a/runtime/queries/c-sharp/highlights.scm +++ b/runtime/queries/c-sharp/highlights.scm @@ -228,8 +228,19 @@ "let" ] @keyword -(preprocessor_call) @keyword.directive -(preprocessor_call (_) @keyword.directive) +(nullable_directive) @keyword.directive +(define_directive) @keyword.directive +(undef_directive) @keyword.directive +(if_directive) @keyword.directive +(else_directive) @keyword.directive +(elif_directive) @keyword.directive +(endif_directive) @keyword.directive +(region_directive) @keyword.directive +(endregion_directive) @keyword.directive +(error_directive) @keyword.directive +(warning_directive) @keyword.directive +(line_directive) @keyword.directive +(pragma_directive) @keyword.directive ;; Linq (from_clause (identifier) @variable) diff --git a/runtime/queries/c-sharp/textobjects.scm b/runtime/queries/c-sharp/textobjects.scm new file mode 100644 index 00000000..c5afe5f4 --- /dev/null +++ b/runtime/queries/c-sharp/textobjects.scm @@ -0,0 +1,21 @@ +[ + (class_declaration body: (_) @class.inside) + (struct_declaration body: (_) @class.inside) + (interface_declaration body: (_) @class.inside) + (enum_declaration body: (_) @class.inside) + (delegate_declaration) + (record_declaration body: (_) @class.inside) + (record_struct_declaration body: (_) @class.inside) +] @class.around + +(constructor_declaration body: (_) @function.inside) @function.around + +(destructor_declaration body: (_) @function.inside) @function.around + +(method_declaration body: (_) @function.inside) @function.around + +(property_declaration (_) @function.inside) @function.around + +(parameter (_) @parameter.inside) @parameter.around + +(comment)+ @comment.around |