diff options
Diffstat (limited to 'queries/vala/highlights.scm')
| -rw-r--r-- | queries/vala/highlights.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/vala/highlights.scm b/queries/vala/highlights.scm index e1a20b8a0..875bad539 100644 --- a/queries/vala/highlights.scm +++ b/queries/vala/highlights.scm @@ -10,12 +10,12 @@ ; highlight constants ( (member_access_expression (identifier) @constant) - (#match? @constant "^[A-Z][A-Z_0-9]*$") + (#lua-match? @constant "^[%u][%u%d_]*$") ) ( (member_access_expression (member_access_expression) @include (identifier) @constant) - (#match? @constant "^[A-Z][A-Z_0-9]*$") + (#lua-match? @constant "^[%u][%u%d_]*$") ) ; highlight types and probable types @@ -28,7 +28,7 @@ ; highlight creation methods in object creation expressions ( (object_creation_expression (type (symbol (symbol (symbol)? @include (identifier) @type) (identifier) @constructor))) - (#match? @constructor "^[a-z][a-z_0-9]*$") + (#lua-match? @constructor "^[%l][%l%d_]*$") ) (unqualified_type (symbol . (identifier) @type)) |
