Regenerate nvim config
This commit is contained in:
38
config/neovim/store/nvim-treesitter/queries/rst/locals.scm
Normal file
38
config/neovim/store/nvim-treesitter/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
|
||||
Reference in New Issue
Block a user