diff options
| author | Shengyu Zhang <reg@silverrainz.me> | 2024-11-01 16:51:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-01 09:51:17 +0100 |
| commit | b065b59196edb10a7c29bfbed88cc225b7e3de37 (patch) | |
| tree | 571c3e45fa6f8386c00278cdfadb4965e530e664 | |
| parent | bot(lockfile): update cylc, superhtml (diff) | |
| download | nvim-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
| -rw-r--r-- | queries/rst/highlights.scm | 10 |
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 |
