mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
refactor(queries): Remove quotes from properties in set! directive
This commit is contained in:
parent
88aa09e6e9
commit
51bba660a8
45 changed files with 95 additions and 95 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue