highlights.scm

  1(identifier) @variable
  2
  3(type_identifier) @type
  4(field_identifier) @variable.member
  5
  6(keyed_element
  7  .
  8  (literal_element
  9    (identifier) @variable.member))
 10
 11(call_expression
 12  function: (identifier) @function)
 13
 14(call_expression
 15  function: (selector_expression
 16    field: (field_identifier) @function.method))
 17
 18(function_declaration
 19  name: (identifier) @function)
 20
 21(method_declaration
 22  name: (field_identifier) @function.method)
 23
 24[
 25  "("
 26  ")"
 27  "{"
 28  "}"
 29  "["
 30  "]"
 31] @punctuation.bracket
 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  "||"
 70  "~"
 71] @operator
 72
 73[
 74  "break"
 75  "case"
 76  "chan"
 77  "const"
 78  "continue"
 79  "default"
 80  "defer"
 81  "else"
 82  "fallthrough"
 83  "for"
 84  "func"
 85  "go"
 86  "goto"
 87  "if"
 88  "import"
 89  "interface"
 90  "map"
 91  "package"
 92  "range"
 93  "return"
 94  "select"
 95  "struct"
 96  "switch"
 97  "type"
 98  "var"
 99] @keyword
100
101[
102  (interpreted_string_literal)
103  (raw_string_literal)
104  (rune_literal)
105] @string
106
107(escape_sequence) @string.escape
108
109[
110  (int_literal)
111  (float_literal)
112  (imaginary_literal)
113] @number
114
115(const_spec
116  name: (identifier) @constant)
117
118[
119  (true)
120  (false)
121  (nil)
122  (iota)
123] @constant.builtin
124
125(comment) @comment