mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
RST: update queries
This commit is contained in:
parent
3c7528a294
commit
81d444c498
1 changed files with 14 additions and 3 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
"|"
|
"|"
|
||||||
"--"
|
"--"
|
||||||
"__"
|
"__"
|
||||||
|
":"
|
||||||
"::"
|
"::"
|
||||||
"bullet"
|
"bullet"
|
||||||
"adornment"
|
"adornment"
|
||||||
|
|
@ -32,10 +33,12 @@
|
||||||
[
|
[
|
||||||
(literal_block)
|
(literal_block)
|
||||||
(line_block)
|
(line_block)
|
||||||
(block_quote)
|
|
||||||
(doctest_block)
|
(doctest_block)
|
||||||
] @text.literal
|
] @text.literal
|
||||||
|
|
||||||
|
(block_quote
|
||||||
|
(attribution)? @text.emphasis) @text.literal
|
||||||
|
|
||||||
(substitution_definition
|
(substitution_definition
|
||||||
name: (substitution) @constant)
|
name: (substitution) @constant)
|
||||||
|
|
||||||
|
|
@ -49,6 +52,16 @@
|
||||||
name: (reference)? @constant
|
name: (reference)? @constant
|
||||||
link: (_) @text.literal)
|
link: (_) @text.literal)
|
||||||
|
|
||||||
|
;; Lists
|
||||||
|
|
||||||
|
; Definition lists
|
||||||
|
(list_item
|
||||||
|
(term) @text.strong
|
||||||
|
(classifier)? @text.emphasis)
|
||||||
|
|
||||||
|
; Field lists
|
||||||
|
(field (field_name) @constant)
|
||||||
|
|
||||||
;; Inline markup
|
;; Inline markup
|
||||||
|
|
||||||
(emphasis) @text.emphasis
|
(emphasis) @text.emphasis
|
||||||
|
|
@ -110,8 +123,6 @@
|
||||||
|
|
||||||
(title) @text.title
|
(title) @text.title
|
||||||
|
|
||||||
(attribution) @text.emphasis
|
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
(comment "..") @comment
|
(comment "..") @comment
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue