1(type_identifier) @type
2(field_identifier) @variable.member
3
4(keyed_element
5 .
6 (literal_element
7 (identifier) @variable.member))
8
9(call_expression
10 function: (identifier) @function)
11
12(call_expression
13 function: (selector_expression
14 field: (field_identifier) @function.method))
15
16(function_declaration
17 name: (identifier) @function)
18
19(method_declaration
20 name: (field_identifier) @function.method)
21
22[
23 "("
24 ")"
25 "{"
26 "}"
27 "["
28 "]"
29] @punctuation.bracket
30
31[
32 "--"
33 "-"
34 "-="
35 ":="
36 "!"
37 "!="
38 "..."
39 "*"
40 "*"
41 "*="
42 "/"
43 "/="
44 "&"
45 "&&"
46 "&="
47 "%"
48 "%="
49 "^"
50 "^="
51 "+"
52 "++"
53 "+="
54 "<-"
55 "<"
56 "<<"
57 "<<="
58 "<="
59 "="
60 "=="
61 ">"
62 ">="
63 ">>"
64 ">>="
65 "|"
66 "|="
67 "||"
68 "~"
69] @operator
70
71[
72 "break"
73 "case"
74 "chan"
75 "const"
76 "continue"
77 "default"
78 "defer"
79 "else"
80 "fallthrough"
81 "for"
82 "func"
83 "go"
84 "goto"
85 "if"
86 "import"
87 "interface"
88 "map"
89 "package"
90 "range"
91 "return"
92 "select"
93 "struct"
94 "switch"
95 "type"
96 "var"
97] @keyword
98
99[
100 (interpreted_string_literal)
101 (raw_string_literal)
102 (rune_literal)
103] @string
104
105(escape_sequence) @string.escape
106
107[
108 (int_literal)
109 (float_literal)
110 (imaginary_literal)
111] @number
112
113(const_spec
114 name: (identifier) @constant)
115
116[
117 (true)
118 (false)
119 (nil)
120 (iota)
121] @constant.builtin
122
123(comment) @comment