mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
fix(rst): capture (adornment) node as @markup.heading (#7302)
Node alias "adornment" is used as title's overline and underline:
5120f6e592/grammar.js (L112)
This commit is contained in:
parent
fb2d41ec59
commit
b065b59196
1 changed files with 5 additions and 5 deletions
|
|
@ -9,10 +9,7 @@
|
||||||
(transition)
|
(transition)
|
||||||
] @punctuation.special
|
] @punctuation.special
|
||||||
|
|
||||||
[
|
"bullet" @markup.list
|
||||||
"bullet"
|
|
||||||
"adornment"
|
|
||||||
] @markup.list
|
|
||||||
|
|
||||||
; Resets for injection
|
; Resets for injection
|
||||||
(doctest_block) @none
|
(doctest_block) @none
|
||||||
|
|
@ -133,7 +130,10 @@
|
||||||
] @markup.link @nospell
|
] @markup.link @nospell
|
||||||
|
|
||||||
; Others
|
; Others
|
||||||
(title) @markup.heading
|
[
|
||||||
|
(title)
|
||||||
|
"adornment"
|
||||||
|
] @markup.heading
|
||||||
|
|
||||||
(comment) @comment @spell
|
(comment) @comment @spell
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue