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