From b065b59196edb10a7c29bfbed88cc225b7e3de37 Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Fri, 1 Nov 2024 16:51:17 +0800 Subject: 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 --- queries/rst/highlights.scm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'queries') 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 -- cgit v1.2.3-70-g09d2