mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
parent
bf0ae40cf4
commit
f8314a4df3
2 changed files with 7 additions and 0 deletions
|
|
@ -18,6 +18,9 @@
|
||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
(#vim-match? @constant "^[A-Z][A-Z\\d_]+$"))
|
(#vim-match? @constant "^[A-Z][A-Z\\d_]+$"))
|
||||||
|
|
||||||
|
(const_spec
|
||||||
|
name: (identifier) @constant)
|
||||||
|
|
||||||
; Function calls
|
; Function calls
|
||||||
|
|
||||||
(call_expression
|
(call_expression
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@
|
||||||
left: (expression_list
|
left: (expression_list
|
||||||
(identifier) @definition.var)))
|
(identifier) @definition.var)))
|
||||||
|
|
||||||
|
(const_declaration
|
||||||
|
(const_spec
|
||||||
|
name: (identifier) @definition.var))
|
||||||
|
|
||||||
(type_declaration
|
(type_declaration
|
||||||
(type_spec
|
(type_spec
|
||||||
name: (type_identifier) @definition.type))
|
name: (type_identifier) @definition.type))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue