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, 4 insertions, 3 deletions
diff --git a/runtime/queries/move/highlights.scm b/runtime/queries/move/highlights.scm
index 86a79dc2..bf607e1f 100644
--- a/runtime/queries/move/highlights.scm
+++ b/runtime/queries/move/highlights.scm
@@ -23,12 +23,16 @@
(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
@@ -152,6 +156,3 @@
"with"
] @keyword
-(primitive_type) @type.buildin
-
-(identifier) @variable