mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
fix(runtime): sync bundled treesitter queries
This commit is contained in:
parent
bdff50dee5
commit
9e80738f30
@ -1,6 +1,6 @@
|
||||
; Lower priority to prefer @variable.parameter when identifier appears in parameter_declaration.
|
||||
((identifier) @variable
|
||||
(#set! "priority" 95))
|
||||
(#set! priority 95))
|
||||
|
||||
(preproc_def
|
||||
(preproc_arg) @variable)
|
||||
|
@ -45,7 +45,7 @@
|
||||
(indented_code_block) @markup.raw.block
|
||||
|
||||
((fenced_code_block) @markup.raw.block
|
||||
(#set! "priority" 90))
|
||||
(#set! priority 90))
|
||||
|
||||
(fenced_code_block
|
||||
(fenced_code_block_delimiter) @markup.raw.block
|
||||
@ -103,13 +103,13 @@
|
||||
(task_list_marker_checked) @markup.list.checked
|
||||
|
||||
((block_quote) @markup.quote
|
||||
(#set! "priority" 90))
|
||||
(#set! priority 90))
|
||||
|
||||
([
|
||||
(plus_metadata)
|
||||
(minus_metadata)
|
||||
] @keyword.directive
|
||||
(#set! "priority" 90))
|
||||
(#set! priority 90))
|
||||
|
||||
[
|
||||
(block_continuation)
|
||||
|
@ -43,7 +43,7 @@
|
||||
(inline_link
|
||||
(link_text) @_label
|
||||
(link_destination) @_url
|
||||
(#set! @_label "url" @_url))
|
||||
(#set! @_label url @_url))
|
||||
|
||||
; Conceal image links
|
||||
(image
|
||||
@ -89,11 +89,11 @@
|
||||
] @markup.link.url @nospell
|
||||
|
||||
((link_destination) @_url
|
||||
(#set! @_url "url" @_url))
|
||||
(#set! @_url url @_url))
|
||||
|
||||
((uri_autolink) @_url
|
||||
(#offset! @_url 0 1 0 -1)
|
||||
(#set! @_url "url" @_url))
|
||||
(#set! @_url url @_url))
|
||||
|
||||
(entity_reference) @nospell
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
name: (identifier) @variable)
|
||||
|
||||
(field_definition
|
||||
name: (identifier) @property)
|
||||
name: (identifier) @variable.member)
|
||||
|
||||
(negated_field
|
||||
"!" @operator
|
||||
@ -63,6 +63,15 @@
|
||||
((comment) @keyword.directive @nospell
|
||||
(#lua-match? @keyword.directive "^;+%s*format%-ignore%s*$"))
|
||||
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters
|
||||
.
|
||||
(capture)?
|
||||
.
|
||||
(identifier) @property))
|
||||
(#eq? @_name "set"))
|
||||
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters
|
||||
|
@ -41,7 +41,7 @@
|
||||
text: (_) @markup.raw)
|
||||
|
||||
((codeblock) @markup.raw.block
|
||||
(#set! "priority" 90))
|
||||
(#set! priority 90))
|
||||
|
||||
(codeblock
|
||||
">" @markup.raw
|
||||
@ -59,7 +59,8 @@
|
||||
|
||||
(keycode) @string.special
|
||||
|
||||
(url) @string.special.url
|
||||
((url) @string.special.url
|
||||
(#set! @string.special.url url @string.special.url))
|
||||
|
||||
(modeline) @keyword.directive
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user