Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/nim/textobjects.scm')
| -rw-r--r-- | runtime/queries/nim/textobjects.scm | 44 |
1 files changed, 15 insertions, 29 deletions
diff --git a/runtime/queries/nim/textobjects.scm b/runtime/queries/nim/textobjects.scm index eaa3e8e8..943aa7f0 100644 --- a/runtime/queries/nim/textobjects.scm +++ b/runtime/queries/nim/textobjects.scm @@ -1,33 +1,19 @@ -(proc_declaration - body: (_) @function.inside) @function.around -(func_declaration - body: (_) @function.inside) @function.around -(iterator_declaration - body: (_) @function.inside) @function.around -(converter_declaration - body: (_) @function.inside) @function.around -(method_declaration - body: (_) @function.inside) @function.around -(template_declaration - body: (_) @function.inside) @function.around -(macro_declaration - body: (_) @function.inside) @function.around +(routine + (block) @function.inside) @function.around -(type_declaration (_) @class.inside) @class.around +; @class.inside (types?) +; @class.around -(parameter_declaration - (symbol_declaration_list) @parameter.inside) @parameter.around +; paramListSuffix is strange and i do not understand it +(paramList + (paramColonEquals) @parameter.inside) @parameter.around -[ - (comment) - (block_comment) - (documentation_comment) - (block_documentation_comment) -] @comment.inside +(comment) @comment.inside +(multilineComment) @comment.inside +(docComment) @comment.inside +(multilineDocComment) @comment.inside -[ - (comment)+ - (block_comment) - (documentation_comment)+ - (block_documentation_comment)+ -] @comment.around +(comment)+ @comment.around +(multilineComment) @comment.around +(docComment)+ @comment.around +(multilineDocComment) @comment.around |