mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat(locals)!: switch to upstream captures
This commit is contained in:
parent
f197a15b0d
commit
5b90ea2aba
109 changed files with 1341 additions and 1341 deletions
|
|
@ -1,24 +1,24 @@
|
|||
; Let Binding Definition
|
||||
(let pattern: (identifier) @definition)
|
||||
(let pattern: (identifier) @local.definition)
|
||||
|
||||
; List Pattern Definitions
|
||||
(list_pattern (identifier) @definition)
|
||||
(list_pattern assign: (identifier) @definition)
|
||||
(list_pattern (identifier) @local.definition)
|
||||
(list_pattern assign: (identifier) @local.definition)
|
||||
|
||||
; Tuple Pattern Definition
|
||||
(tuple_pattern (identifier) @definition)
|
||||
(tuple_pattern (identifier) @local.definition)
|
||||
|
||||
; Record Pattern Definition
|
||||
(record_pattern_argument pattern: (identifier) @definition)
|
||||
(record_pattern_argument pattern: (identifier) @local.definition)
|
||||
|
||||
; Function Parameter Definition
|
||||
(function_parameter name: (identifier) @definition)
|
||||
(function_parameter name: (identifier) @local.definition)
|
||||
|
||||
; References
|
||||
(identifier) @reference
|
||||
(identifier) @local.reference
|
||||
|
||||
; Function Body Scope
|
||||
(function_body) @scope
|
||||
(function_body) @local.scope
|
||||
|
||||
; Case Scope
|
||||
(case_clause) @scope
|
||||
(case_clause) @local.scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue