aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorShengyu Zhang <reg@silverrainz.me>2024-11-01 16:51:17 +0800
committerGitHub <noreply@github.com>2024-11-01 09:51:17 +0100
commitb065b59196edb10a7c29bfbed88cc225b7e3de37 (patch)
tree571c3e45fa6f8386c00278cdfadb4965e530e664 /queries
parentbot(lockfile): update cylc, superhtml (diff)
downloadnvim-treesitter-b065b59196edb10a7c29bfbed88cc225b7e3de37.tar
nvim-treesitter-b065b59196edb10a7c29bfbed88cc225b7e3de37.tar.gz
nvim-treesitter-b065b59196edb10a7c29bfbed88cc225b7e3de37.tar.bz2
nvim-treesitter-b065b59196edb10a7c29bfbed88cc225b7e3de37.tar.lz
nvim-treesitter-b065b59196edb10a7c29bfbed88cc225b7e3de37.tar.xz
nvim-treesitter-b065b59196edb10a7c29bfbed88cc225b7e3de37.tar.zst
nvim-treesitter-b065b59196edb10a7c29bfbed88cc225b7e3de37.zip
fix(rst): capture (adornment) node as @markup.heading (#7302)
Node alias "adornment" is used as title's overline and underline: https://github.com/stsewd/tree-sitter-rst/blob/5120f6e59284cb8b85b450bd2db0bd352635ba9f/grammar.js#L112
Diffstat (limited to 'queries')
-rw-r--r--queries/rst/highlights.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm
index 2d1b33eff..21e3825c0 100644
--- a/queries/rst/highlights.scm
+++ b/queries/rst/highlights.scm
@@ -9,10 +9,7 @@
(transition)
] @punctuation.special
-[
- "bullet"
- "adornment"
-] @markup.list
+"bullet" @markup.list
; Resets for injection
(doctest_block) @none
@@ -133,7 +130,10 @@
] @markup.link @nospell
; Others
-(title) @markup.heading
+[
+ (title)
+ "adornment"
+] @markup.heading
(comment) @comment @spell