mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
apex: highlights: change the constant variable order to recognize it (#6779)
This commit is contained in:
parent
09953e394b
commit
c29989f5d7
1 changed files with 3 additions and 3 deletions
|
@ -152,6 +152,9 @@
|
|||
field: (identifier) @variable.member)
|
||||
|
||||
; Variables
|
||||
(variable_declarator
|
||||
(identifier) @property)
|
||||
|
||||
(field_declaration
|
||||
(modifiers
|
||||
(modifier
|
||||
|
@ -167,9 +170,6 @@
|
|||
(variable_declarator
|
||||
name: (identifier) @constant))
|
||||
|
||||
(variable_declarator
|
||||
(identifier) @property)
|
||||
|
||||
((identifier) @constant
|
||||
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$")) ; SCREAM SNAKE CASE
|
||||
|
||||
|
|
Loading…
Reference in a new issue