fix(runtime): sync bundled treesitter queries

This commit is contained in:
Christian Clason 2024-07-28 12:13:10 +02:00
parent bdff50dee5
commit 9e80738f30
5 changed files with 20 additions and 10 deletions

View File

@ -1,6 +1,6 @@
; Lower priority to prefer @variable.parameter when identifier appears in parameter_declaration. ; Lower priority to prefer @variable.parameter when identifier appears in parameter_declaration.
((identifier) @variable ((identifier) @variable
(#set! "priority" 95)) (#set! priority 95))
(preproc_def (preproc_def
(preproc_arg) @variable) (preproc_arg) @variable)

View File

@ -45,7 +45,7 @@
(indented_code_block) @markup.raw.block (indented_code_block) @markup.raw.block
((fenced_code_block) @markup.raw.block ((fenced_code_block) @markup.raw.block
(#set! "priority" 90)) (#set! priority 90))
(fenced_code_block (fenced_code_block
(fenced_code_block_delimiter) @markup.raw.block (fenced_code_block_delimiter) @markup.raw.block
@ -103,13 +103,13 @@
(task_list_marker_checked) @markup.list.checked (task_list_marker_checked) @markup.list.checked
((block_quote) @markup.quote ((block_quote) @markup.quote
(#set! "priority" 90)) (#set! priority 90))
([ ([
(plus_metadata) (plus_metadata)
(minus_metadata) (minus_metadata)
] @keyword.directive ] @keyword.directive
(#set! "priority" 90)) (#set! priority 90))
[ [
(block_continuation) (block_continuation)

View File

@ -43,7 +43,7 @@
(inline_link (inline_link
(link_text) @_label (link_text) @_label
(link_destination) @_url (link_destination) @_url
(#set! @_label "url" @_url)) (#set! @_label url @_url))
; Conceal image links ; Conceal image links
(image (image
@ -89,11 +89,11 @@
] @markup.link.url @nospell ] @markup.link.url @nospell
((link_destination) @_url ((link_destination) @_url
(#set! @_url "url" @_url)) (#set! @_url url @_url))
((uri_autolink) @_url ((uri_autolink) @_url
(#offset! @_url 0 1 0 -1) (#offset! @_url 0 1 0 -1)
(#set! @_url "url" @_url)) (#set! @_url url @_url))
(entity_reference) @nospell (entity_reference) @nospell

View File

@ -12,7 +12,7 @@
name: (identifier) @variable) name: (identifier) @variable)
(field_definition (field_definition
name: (identifier) @property) name: (identifier) @variable.member)
(negated_field (negated_field
"!" @operator "!" @operator
@ -63,6 +63,15 @@
((comment) @keyword.directive @nospell ((comment) @keyword.directive @nospell
(#lua-match? @keyword.directive "^;+%s*format%-ignore%s*$")) (#lua-match? @keyword.directive "^;+%s*format%-ignore%s*$"))
((predicate
name: (identifier) @_name
parameters: (parameters
.
(capture)?
.
(identifier) @property))
(#eq? @_name "set"))
((predicate ((predicate
name: (identifier) @_name name: (identifier) @_name
parameters: (parameters parameters: (parameters

View File

@ -41,7 +41,7 @@
text: (_) @markup.raw) text: (_) @markup.raw)
((codeblock) @markup.raw.block ((codeblock) @markup.raw.block
(#set! "priority" 90)) (#set! priority 90))
(codeblock (codeblock
">" @markup.raw ">" @markup.raw
@ -59,7 +59,8 @@
(keycode) @string.special (keycode) @string.special
(url) @string.special.url ((url) @string.special.url
(#set! @string.special.url url @string.special.url))
(modeline) @keyword.directive (modeline) @keyword.directive