mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
feat(locals)!: switch to upstream captures
This commit is contained in:
parent
306367a7f4
commit
8fb218dbfd
95 changed files with 1154 additions and 1154 deletions
|
|
@ -1,32 +1,32 @@
|
|||
;; Scopes
|
||||
|
||||
(document) @scope
|
||||
(document) @local.scope
|
||||
|
||||
(directive) @scope
|
||||
(directive) @local.scope
|
||||
|
||||
;; Definitions
|
||||
|
||||
(title) @definition
|
||||
(title) @local.definition
|
||||
|
||||
(substitution_definition
|
||||
name: (substitution) @definition)
|
||||
name: (substitution) @local.definition)
|
||||
|
||||
(footnote
|
||||
name: (label) @definition)
|
||||
name: (label) @local.definition)
|
||||
|
||||
(citation
|
||||
name: (label) @definition)
|
||||
name: (label) @local.definition)
|
||||
|
||||
(target
|
||||
name: (name) @definition)
|
||||
name: (name) @local.definition)
|
||||
|
||||
; Inline targets
|
||||
(inline_target) @definition
|
||||
(inline_target) @local.definition
|
||||
|
||||
; The role directive can define a new role
|
||||
((directive
|
||||
name: (type) @_type
|
||||
body: (body (arguments) @definition))
|
||||
body: (body (arguments) @local.definition))
|
||||
(#eq? @_type "role"))
|
||||
|
||||
;; References
|
||||
|
|
@ -37,4 +37,4 @@
|
|||
(citation_reference)
|
||||
(reference)
|
||||
(role)
|
||||
] @reference
|
||||
] @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue