mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -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"
|
||||
"adornment"
|
||||
|
|
@ -32,10 +33,12 @@
|
|||
[
|
||||
(literal_block)
|
||||
(line_block)
|
||||
(block_quote)
|
||||
(doctest_block)
|
||||
] @text.literal
|
||||
|
||||
(block_quote
|
||||
(attribution)? @text.emphasis) @text.literal
|
||||
|
||||
(substitution_definition
|
||||
name: (substitution) @constant)
|
||||
|
||||
|
|
@ -49,6 +52,16 @@
|
|||
name: (reference)? @constant
|
||||
link: (_) @text.literal)
|
||||
|
||||
;; Lists
|
||||
|
||||
; Definition lists
|
||||
(list_item
|
||||
(term) @text.strong
|
||||
(classifier)? @text.emphasis)
|
||||
|
||||
; Field lists
|
||||
(field (field_name) @constant)
|
||||
|
||||
;; Inline markup
|
||||
|
||||
(emphasis) @text.emphasis
|
||||
|
|
@ -110,8 +123,6 @@
|
|||
|
||||
(title) @text.title
|
||||
|
||||
(attribution) @text.emphasis
|
||||
|
||||
(comment) @comment
|
||||
(comment "..") @comment
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue