mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(treesitter): update queries
This commit is contained in:
parent
c2f08d294a
commit
6e44a6a289
@ -252,13 +252,22 @@
|
|||||||
|
|
||||||
; Preproc def / undef
|
; Preproc def / undef
|
||||||
(preproc_def
|
(preproc_def
|
||||||
name: (_) @constant)
|
name: (_) @constant.macro)
|
||||||
|
|
||||||
(preproc_call
|
(preproc_call
|
||||||
directive: (preproc_directive) @_u
|
directive: (preproc_directive) @_u
|
||||||
argument: (_) @constant
|
argument: (_) @constant.macro
|
||||||
(#eq? @_u "#undef"))
|
(#eq? @_u "#undef"))
|
||||||
|
|
||||||
|
(preproc_ifdef
|
||||||
|
name: (identifier) @constant.macro)
|
||||||
|
|
||||||
|
(preproc_elifdef
|
||||||
|
name: (identifier) @constant.macro)
|
||||||
|
|
||||||
|
(preproc_defined
|
||||||
|
(identifier) @constant.macro)
|
||||||
|
|
||||||
(call_expression
|
(call_expression
|
||||||
function: (identifier) @function.call)
|
function: (identifier) @function.call)
|
||||||
|
|
||||||
|
@ -151,8 +151,6 @@
|
|||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
(#lua-match? @constant "^[A-Z][A-Z_0-9]*$"))
|
(#lua-match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||||
|
|
||||||
(vararg_expression) @constant
|
|
||||||
|
|
||||||
(nil) @constant.builtin
|
(nil) @constant.builtin
|
||||||
|
|
||||||
[
|
[
|
||||||
|
@ -40,14 +40,12 @@
|
|||||||
(image_description)
|
(image_description)
|
||||||
] @markup.link.label
|
] @markup.link.label
|
||||||
|
|
||||||
(inline_link
|
((inline_link
|
||||||
(link_text) @_label
|
(link_destination) @_url) @_label
|
||||||
(link_destination) @_url
|
|
||||||
(#set! @_label url @_url))
|
(#set! @_label url @_url))
|
||||||
|
|
||||||
(image
|
((image
|
||||||
(image_description) @_label
|
(link_destination) @_url) @_label
|
||||||
(link_destination) @_url
|
|
||||||
(#set! @_label url @_url))
|
(#set! @_label url @_url))
|
||||||
|
|
||||||
; Conceal image links
|
; Conceal image links
|
||||||
@ -93,9 +91,6 @@
|
|||||||
(email_autolink)
|
(email_autolink)
|
||||||
] @markup.link.url @nospell
|
] @markup.link.url @nospell
|
||||||
|
|
||||||
((link_destination) @_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))
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"#"
|
"#"
|
||||||
] @punctuation.special
|
] @punctuation.special
|
||||||
|
|
||||||
"_" @constant
|
"_" @character.special
|
||||||
|
|
||||||
((parameters
|
((parameters
|
||||||
(identifier) @number)
|
(identifier) @number)
|
||||||
|
@ -287,6 +287,7 @@
|
|||||||
"=~"
|
"=~"
|
||||||
"!~"
|
"!~"
|
||||||
"="
|
"="
|
||||||
|
"^="
|
||||||
"+="
|
"+="
|
||||||
"-="
|
"-="
|
||||||
"*="
|
"*="
|
||||||
|
@ -1108,7 +1108,7 @@ describe('treesitter highlighting (markdown)', function()
|
|||||||
})
|
})
|
||||||
screen:expect({
|
screen:expect({
|
||||||
grid = [[
|
grid = [[
|
||||||
{25:[}{100:This link text}{25:](}{101:https://example.com}{25:)} is|
|
{100:[This link text](}{101:https://example.com}{100:)} is|
|
||||||
a hyperlink^. |
|
a hyperlink^. |
|
||||||
{1:~ }|*3
|
{1:~ }|*3
|
||||||
|
|
|
|
||||||
|
Loading…
Reference in New Issue
Block a user