Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/move/highlights.scm')
-rw-r--r--runtime/queries/move/highlights.scm7
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/queries/move/highlights.scm b/runtime/queries/move/highlights.scm
index bf607e1f..86a79dc2 100644
--- a/runtime/queries/move/highlights.scm
+++ b/runtime/queries/move/highlights.scm
@@ -23,16 +23,12 @@
(borrow_expression "&" @keyword.storage.modifier.ref)
(borrow_expression "&mut" @keyword.storage.modifier.mut)
-(identifier) @variable
-
(constant_identifier) @constant
((identifier) @constant
(#match? @constant "^[A-Z][A-Z\\d_]*$"))
(function_identifier) @function
-(primitive_type) @type.builtin
-
(struct_identifier) @type
(pack_expression
access: (module_access
@@ -156,3 +152,6 @@
"with"
] @keyword
+(primitive_type) @type.buildin
+
+(identifier) @variable