mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
Parsers: add reStructuredText
This commit is contained in:
parent
121c44a23b
commit
6f01384cb2
9 changed files with 186 additions and 4 deletions
31
queries/rst/locals.scm
Normal file
31
queries/rst/locals.scm
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
;; Scopes
|
||||
|
||||
(document) @scope
|
||||
|
||||
(directive) @scope
|
||||
|
||||
;; Definitions
|
||||
|
||||
(substitution_definition
|
||||
name: (substitution) @definition)
|
||||
|
||||
(footnote
|
||||
name: (label) @definition)
|
||||
|
||||
(citation
|
||||
name: (label) @definition)
|
||||
|
||||
(target
|
||||
name: (reference) @definition)
|
||||
|
||||
; Inline targets
|
||||
(target) @definition
|
||||
|
||||
;; References
|
||||
|
||||
[
|
||||
(substitution_reference)
|
||||
(footnote_reference)
|
||||
(citation_reference)
|
||||
(reference)
|
||||
] @reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue