mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
38
runtime/queries/rst/locals.scm
Normal file
38
runtime/queries/rst/locals.scm
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
; Scopes
|
||||
(document) @local.scope
|
||||
|
||||
(directive) @local.scope
|
||||
|
||||
; Definitions
|
||||
(title) @local.definition
|
||||
|
||||
(substitution_definition
|
||||
name: (substitution) @local.definition)
|
||||
|
||||
(footnote
|
||||
name: (label) @local.definition)
|
||||
|
||||
(citation
|
||||
name: (label) @local.definition)
|
||||
|
||||
(target
|
||||
name: (name) @local.definition)
|
||||
|
||||
; Inline targets
|
||||
(inline_target) @local.definition
|
||||
|
||||
; The role directive can define a new role
|
||||
((directive
|
||||
name: (type) @_type
|
||||
body: (body
|
||||
(arguments) @local.definition))
|
||||
(#eq? @_type "role"))
|
||||
|
||||
; References
|
||||
[
|
||||
(substitution_reference)
|
||||
(footnote_reference)
|
||||
(citation_reference)
|
||||
(reference)
|
||||
(role)
|
||||
] @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue