aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/c/highlights.scm2
-rw-r--r--runtime/queries/rust/highlights.scm3
2 files changed, 4 insertions, 1 deletions
diff --git a/runtime/queries/c/highlights.scm b/runtime/queries/c/highlights.scm
index 36fe47d9..258e07e7 100644
--- a/runtime/queries/c/highlights.scm
+++ b/runtime/queries/c/highlights.scm
@@ -54,6 +54,8 @@
"." @punctuation.delimiter
";" @punctuation.delimiter
+(enumerator) @type.enum.variant
+
(string_literal) @string
(system_lib_string) @string
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index b72216f6..bb15074b 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -3,9 +3,10 @@
; Assume all-caps names are constants
((identifier) @constant
- (#match? @constant "^[A-Z][A-Z\\d_]+$'"))
+ (#match? @constant "^[A-Z][A-Z\\d_]+$"))
; Assume other uppercase names are enum constructors
+(enum_variant) @type.enum.variant
((identifier) @constructor
(#match? @constructor "^[A-Z]"))