Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/opencl/highlights.scm')
| -rw-r--r-- | runtime/queries/opencl/highlights.scm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/queries/opencl/highlights.scm b/runtime/queries/opencl/highlights.scm index 9d76d6c6..36133bd2 100644 --- a/runtime/queries/opencl/highlights.scm +++ b/runtime/queries/opencl/highlights.scm @@ -106,6 +106,11 @@ [(true) (false)] @constant.builtin.boolean +(identifier) @variable + +((identifier) @constant + (#match? @constant "^[A-Z][A-Z\\d_]*$")) + (enumerator name: (identifier) @type.enum.variant) (string_literal) @string @@ -142,9 +147,4 @@ (vector_type) @type.builtin (other_builtin_type) @type.builtin -((identifier) @constant - (#match? @constant "^[A-Z][A-Z\\d_]*$")) - -(identifier) @variable - (comment) @comment |