Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/ponylang/highlights.scm')
-rw-r--r--runtime/queries/ponylang/highlights.scm18
1 files changed, 9 insertions, 9 deletions
diff --git a/runtime/queries/ponylang/highlights.scm b/runtime/queries/ponylang/highlights.scm
index f67e9a68..2d0594a7 100644
--- a/runtime/queries/ponylang/highlights.scm
+++ b/runtime/queries/ponylang/highlights.scm
@@ -9,7 +9,6 @@
(character) @constant.character
;; strings and docstring
-(string) @string
(source_file docstring: (string) @string.special)
(entity docstring: (string) @string.special)
(method docstring: (string) @string.special) ; docstring for methods without body
@@ -19,6 +18,7 @@
(behavior body: (block . (string) @string.special))
(constructor body: (block . (string) @string.special))
(field docstring: (string) @string.special)
+(string) @string
;; Punctuation
[
@@ -137,14 +137,6 @@
"<="
] @operator
-;; variables
-;; references to upper case things are considered constructors
-(identifier) @variable
-(
- (identifier) @constructor
- (#match? @constructor "^[A-Z]")
-)
-
;; Types
(entity name: (identifier) @type)
(nominal_type name: (identifier) @type)
@@ -174,3 +166,11 @@
;; annotations
(annotations (identifier) @attribute)
+;; variables
+;; references to upper case things are considered constructors
+(
+ (identifier) @constructor
+ (#match @constructor "^[A-Z]")
+)
+(identifier) @variable
+