diff options
| author | Omar Valdez <omarantoniovaldezf2@gmail.com> | 2024-07-27 16:28:19 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-28 11:43:41 +0200 |
| commit | 51bba660a89e0027929206b622c9c1cbdd995cfb (patch) | |
| tree | 412313302f69c4dbd191f99c1529017455ad3429 /queries/nim | |
| parent | feat(latex): capture left/right math delimiters (diff) | |
| download | nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.gz nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.bz2 nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.lz nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.xz nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.tar.zst nvim-treesitter-51bba660a89e0027929206b622c9c1cbdd995cfb.zip | |
refactor(queries): Remove quotes from properties in set! directive
Diffstat (limited to 'queries/nim')
| -rw-r--r-- | queries/nim/highlights.scm | 4 | ||||
| -rw-r--r-- | queries/nim/locals.scm | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/queries/nim/highlights.scm b/queries/nim/highlights.scm index df42c0f7f..722c0abdf 100644 --- a/queries/nim/highlights.scm +++ b/queries/nim/highlights.scm @@ -4,7 +4,7 @@ ; ============================================================================= ; catch all rules ((identifier) @variable - (#set! "priority" 99)) + (#set! priority 99)) ; NOTE: we need priority, since (identifier) is most specific and we have to ; capture nodes containing (identifier) as a whole, while overruling the @@ -12,7 +12,7 @@ (type_expression) @type ; NOTE: has to be after -; ((identifier) @variable (#set! "priority" 99)) +; ((identifier) @variable (#set! priority 99)) ; overrule identifiers in pragmas in (proc_type)s and (pragma_expression)s (proc_type pragmas: (pragma_list) @variable) diff --git a/queries/nim/locals.scm b/queries/nim/locals.scm index 95279e2ea..d79fe728e 100644 --- a/queries/nim/locals.scm +++ b/queries/nim/locals.scm @@ -33,7 +33,7 @@ (exported_symbol (accent_quoted) @local.definition.function) ] - (#set! "definition.function.scope" "parent")) + (#set! definition.function.scope "parent")) (func_declaration name: [ @@ -44,7 +44,7 @@ (exported_symbol (accent_quoted) @local.definition.function) ] - (#set! "definition.function.scope" "parent")) + (#set! definition.function.scope "parent")) (iterator_declaration name: [ @@ -55,7 +55,7 @@ (exported_symbol (accent_quoted) @local.definition.function) ] - (#set! "definition.function.scope" "parent")) + (#set! definition.function.scope "parent")) (converter_declaration name: [ @@ -66,7 +66,7 @@ (exported_symbol (accent_quoted) @local.definition.function) ] - (#set! "definition.function.scope" "parent")) + (#set! definition.function.scope "parent")) ; ============================================================================== ; @local.definition.method ; methods @@ -79,7 +79,7 @@ (exported_symbol (accent_quoted) @local.definition.method) ] - (#set! "definition.method.scope" "parent")) + (#set! definition.method.scope "parent")) ; ============================================================================== ; @local.definition.var ; variables @@ -193,7 +193,7 @@ (exported_symbol (accent_quoted) @local.definition.macro) ] - (#set! "definition.macro.scope" "parent")) + (#set! definition.macro.scope "parent")) (macro_declaration name: [ @@ -204,7 +204,7 @@ (exported_symbol (accent_quoted) @local.definition.macro) ] - (#set! "definition.macro.scope" "parent")) + (#set! definition.macro.scope "parent")) ; ============================================================================== ; @local.definition.type ; types or classes |
