aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-07-24 15:06:01 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-07-24 16:02:53 +0200
commit862338255da6dc08ae4f4f78db0034c81e3cdf38 (patch)
tree337a0256152920951bcb912e32b3601f3d36b315 /runtime
parent64727ac01219db0466bd094068cab9ee8044042c (diff)
downloadrneovim-862338255da6dc08ae4f4f78db0034c81e3cdf38.tar.gz
rneovim-862338255da6dc08ae4f4f78db0034c81e3cdf38.tar.bz2
rneovim-862338255da6dc08ae4f4f78db0034c81e3cdf38.zip
fix(runtime): sync bundled treesitter queries
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/lua/highlights.scm2
-rw-r--r--runtime/queries/markdown/highlights.scm18
-rw-r--r--runtime/queries/markdown_inline/highlights.scm12
3 files changed, 18 insertions, 14 deletions
diff --git a/runtime/queries/lua/highlights.scm b/runtime/queries/lua/highlights.scm
index 0c8f07f290..01c280f2d5 100644
--- a/runtime/queries/lua/highlights.scm
+++ b/runtime/queries/lua/highlights.scm
@@ -162,7 +162,7 @@
; Tables
(field
- name: (identifier) @variable.member)
+ name: (identifier) @property)
(dot_index_expression
field: (identifier) @variable.member)
diff --git a/runtime/queries/markdown/highlights.scm b/runtime/queries/markdown/highlights.scm
index 4b445e02f3..a9ce4df200 100644
--- a/runtime/queries/markdown/highlights.scm
+++ b/runtime/queries/markdown/highlights.scm
@@ -8,28 +8,22 @@
(setext_h2_underline) @markup.heading.2)
(atx_heading
- (atx_h1_marker) @markup.heading.1
- (inline) @markup.heading.1)
+ (atx_h1_marker)) @markup.heading.1
(atx_heading
- (atx_h2_marker) @markup.heading.2
- (inline) @markup.heading.2)
+ (atx_h2_marker)) @markup.heading.2
(atx_heading
- (atx_h3_marker) @markup.heading.3
- (inline) @markup.heading.3)
+ (atx_h3_marker)) @markup.heading.3
(atx_heading
- (atx_h4_marker) @markup.heading.4
- (inline) @markup.heading.4)
+ (atx_h4_marker)) @markup.heading.4
(atx_heading
- (atx_h5_marker) @markup.heading.5
- (inline) @markup.heading.5)
+ (atx_h5_marker)) @markup.heading.5
(atx_heading
- (atx_h6_marker) @markup.heading.6
- (inline) @markup.heading.6)
+ (atx_h6_marker)) @markup.heading.6
(info_string) @label
diff --git a/runtime/queries/markdown_inline/highlights.scm b/runtime/queries/markdown_inline/highlights.scm
index 233ab411cd..ac99cce5fc 100644
--- a/runtime/queries/markdown_inline/highlights.scm
+++ b/runtime/queries/markdown_inline/highlights.scm
@@ -85,12 +85,22 @@
[
(link_destination)
(uri_autolink)
+ (email_autolink)
] @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.
((entity_reference) @character.special
(#eq? @character.special "&nbsp;")
- (#set! conceal ""))
+ (#set! conceal " "))
((entity_reference) @character.special
(#eq? @character.special "&lt;")