mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -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,25 +1,25 @@
|
|||
|
||||
(root) @scope
|
||||
(root) @local.scope
|
||||
|
||||
(defProc) @scope
|
||||
(lambda) @scope
|
||||
(interface (declProc) @scope)
|
||||
(declSection (declProc) @scope)
|
||||
(declClass (declProc) @scope)
|
||||
(declHelper (declProc) @scope)
|
||||
(declProcRef) @scope
|
||||
(defProc) @local.scope
|
||||
(lambda) @local.scope
|
||||
(interface (declProc) @local.scope)
|
||||
(declSection (declProc) @local.scope)
|
||||
(declClass (declProc) @local.scope)
|
||||
(declHelper (declProc) @local.scope)
|
||||
(declProcRef) @local.scope
|
||||
|
||||
(exceptionHandler) @scope
|
||||
(exceptionHandler variable: (identifier) @definition)
|
||||
(exceptionHandler) @local.scope
|
||||
(exceptionHandler variable: (identifier) @local.definition)
|
||||
|
||||
(declArg name: (identifier) @definition)
|
||||
(declVar name: (identifier) @definition)
|
||||
(declConst name: (identifier) @definition)
|
||||
(declLabel name: (identifier) @definition)
|
||||
(genericArg name: (identifier) @definition)
|
||||
(declEnumValue name: (identifier) @definition)
|
||||
(declType name: (identifier) @definition)
|
||||
(declType name: (genericTpl entity: (identifier) @definition))
|
||||
(declArg name: (identifier) @local.definition)
|
||||
(declVar name: (identifier) @local.definition)
|
||||
(declConst name: (identifier) @local.definition)
|
||||
(declLabel name: (identifier) @local.definition)
|
||||
(genericArg name: (identifier) @local.definition)
|
||||
(declEnumValue name: (identifier) @local.definition)
|
||||
(declType name: (identifier) @local.definition)
|
||||
(declType name: (genericTpl entity: (identifier) @local.definition))
|
||||
|
||||
(declProc name: (identifier) @definition)
|
||||
(identifier) @reference
|
||||
(declProc name: (identifier) @local.definition)
|
||||
(identifier) @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue