mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
stricter regex kotlin constants
This commit is contained in:
parent
1ad1f3b35a
commit
a8438b8bbf
1 changed files with 2 additions and 2 deletions
|
|
@ -41,9 +41,9 @@
|
|||
;; Constants
|
||||
; Assume all-caps names are constants
|
||||
((simple_identifier) @constant
|
||||
(#match? @constant "^[A-Z][A-Z_]+"))
|
||||
(#match? @constant "^[A-Z][A-Z_0-9]+$"))
|
||||
((interpolated_identifier) @constant
|
||||
(#vim-match? @constant "^[A-Z][A-Z_]+"))
|
||||
(#vim-match? @constant "^[A-Z][A-Z_0-9]+$"))
|
||||
|
||||
|
||||
(lambda_parameters) @parameter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue