mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
fix(runtime): sync bundled treesitter queries
This commit is contained in:
@ -162,7 +162,7 @@
|
|||||||
|
|
||||||
; Tables
|
; Tables
|
||||||
(field
|
(field
|
||||||
name: (identifier) @variable.member)
|
name: (identifier) @property)
|
||||||
|
|
||||||
(dot_index_expression
|
(dot_index_expression
|
||||||
field: (identifier) @variable.member)
|
field: (identifier) @variable.member)
|
||||||
|
@ -8,28 +8,22 @@
|
|||||||
(setext_h2_underline) @markup.heading.2)
|
(setext_h2_underline) @markup.heading.2)
|
||||||
|
|
||||||
(atx_heading
|
(atx_heading
|
||||||
(atx_h1_marker) @markup.heading.1
|
(atx_h1_marker)) @markup.heading.1
|
||||||
(inline) @markup.heading.1)
|
|
||||||
|
|
||||||
(atx_heading
|
(atx_heading
|
||||||
(atx_h2_marker) @markup.heading.2
|
(atx_h2_marker)) @markup.heading.2
|
||||||
(inline) @markup.heading.2)
|
|
||||||
|
|
||||||
(atx_heading
|
(atx_heading
|
||||||
(atx_h3_marker) @markup.heading.3
|
(atx_h3_marker)) @markup.heading.3
|
||||||
(inline) @markup.heading.3)
|
|
||||||
|
|
||||||
(atx_heading
|
(atx_heading
|
||||||
(atx_h4_marker) @markup.heading.4
|
(atx_h4_marker)) @markup.heading.4
|
||||||
(inline) @markup.heading.4)
|
|
||||||
|
|
||||||
(atx_heading
|
(atx_heading
|
||||||
(atx_h5_marker) @markup.heading.5
|
(atx_h5_marker)) @markup.heading.5
|
||||||
(inline) @markup.heading.5)
|
|
||||||
|
|
||||||
(atx_heading
|
(atx_heading
|
||||||
(atx_h6_marker) @markup.heading.6
|
(atx_h6_marker)) @markup.heading.6
|
||||||
(inline) @markup.heading.6)
|
|
||||||
|
|
||||||
(info_string) @label
|
(info_string) @label
|
||||||
|
|
||||||
|
@ -85,12 +85,22 @@
|
|||||||
[
|
[
|
||||||
(link_destination)
|
(link_destination)
|
||||||
(uri_autolink)
|
(uri_autolink)
|
||||||
|
(email_autolink)
|
||||||
] @markup.link.url @nospell
|
] @markup.link.url @nospell
|
||||||
|
|
||||||
|
((link_destination) @_url
|
||||||
|
(#set! @_url "url" @_url))
|
||||||
|
|
||||||
|
((uri_autolink) @_url
|
||||||
|
(#offset! @_url 0 1 0 -1)
|
||||||
|
(#set! @_url "url" @_url))
|
||||||
|
|
||||||
|
(entity_reference) @nospell
|
||||||
|
|
||||||
; Replace common HTML entities.
|
; Replace common HTML entities.
|
||||||
((entity_reference) @character.special
|
((entity_reference) @character.special
|
||||||
(#eq? @character.special " ")
|
(#eq? @character.special " ")
|
||||||
(#set! conceal ""))
|
(#set! conceal " "))
|
||||||
|
|
||||||
((entity_reference) @character.special
|
((entity_reference) @character.special
|
||||||
(#eq? @character.special "<")
|
(#eq? @character.special "<")
|
||||||
|
@ -1052,10 +1052,15 @@ describe('treesitter highlighting (markdown)', function()
|
|||||||
insert(string.format('[This link text](%s) is a hyperlink.', url))
|
insert(string.format('[This link text](%s) is a hyperlink.', url))
|
||||||
screen:add_extra_attr_ids({
|
screen:add_extra_attr_ids({
|
||||||
[100] = { foreground = Screen.colors.DarkCyan, url = 'https://example.com' },
|
[100] = { foreground = Screen.colors.DarkCyan, url = 'https://example.com' },
|
||||||
|
[101] = {
|
||||||
|
foreground = Screen.colors.SlateBlue,
|
||||||
|
url = 'https://example.com',
|
||||||
|
underline = true,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
screen:expect({
|
screen:expect({
|
||||||
grid = [[
|
grid = [[
|
||||||
{25:[}{100:This link text}{25:](}{28:https://example.com}{25:)} is|
|
{25:[}{100:This link text}{25:](}{101:https://example.com}{25:)} is|
|
||||||
a hyperlink^. |
|
a hyperlink^. |
|
||||||
{1:~ }|*3
|
{1:~ }|*3
|
||||||
|
|
|
|
||||||
|
Reference in New Issue
Block a user