aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/go/highlights.scm30
1 files changed, 15 insertions, 15 deletions
diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm
index ed046e6d0..fb5df7f11 100644
--- a/queries/go/highlights.scm
+++ b/queries/go/highlights.scm
@@ -2,6 +2,21 @@
;; Copyright (c) 2014 Max Brunsfeld (The MIT License)
;;
+; Identifiers
+
+(type_identifier) @type
+(field_identifier) @property
+(identifier) @variable
+
+(parameter_declaration (identifier) @parameter)
+(variadic_parameter_declaration (identifier) @parameter)
+
+((identifier) @constant
+ (#eq? @constant "_"))
+
+((identifier) @constant
+ (#match? @constant "^[A-Z][A-Z\\d_]+$"))
+
; Function calls
(call_expression
@@ -19,21 +34,6 @@
(method_declaration
name: (field_identifier) @method)
-; Identifiers
-
-(type_identifier) @type
-(field_identifier) @property
-(identifier) @variable
-
-(parameter_declaration (identifier) @parameter)
-(variadic_parameter_declaration (identifier) @parameter)
-
-((identifier) @constant
- (#eq? @constant "_"))
-
-((identifier) @constant
- (#match? @constant "^[A-Z][A-Z\\d_]+$"))
-
; Operators
"--" @operator