stricter regex kotlin constants

This commit is contained in:
Tormod Alf Try Tufteland 2020-12-20 19:31:04 +01:00 committed by Stephan Seitz
parent 1ad1f3b35a
commit a8438b8bbf

View file

@ -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