highlights.scm

  1(identifier) @variable
  2(type_identifier) @type
  3(field_identifier) @property
  4
  5(call_expression
  6  function: (identifier) @function)
  7
  8(call_expression
  9  function: (selector_expression
 10    field: (field_identifier) @function.method))
 11
 12(function_declaration
 13  name: (identifier) @function)
 14
 15(method_declaration
 16  name: (field_identifier) @function.method)
 17
 18[
 19  "--"
 20  "-"
 21  "-="
 22  ":="
 23  "!"
 24  "!="
 25  "..."
 26  "*"
 27  "*"
 28  "*="
 29  "/"
 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] @operator
 57
 58[
 59  "break"
 60  "case"
 61  "chan"
 62  "const"
 63  "continue"
 64  "default"
 65  "defer"
 66  "else"
 67  "fallthrough"
 68  "for"
 69  "func"
 70  "go"
 71  "goto"
 72  "if"
 73  "import"
 74  "interface"
 75  "map"
 76  "package"
 77  "range"
 78  "return"
 79  "select"
 80  "struct"
 81  "switch"
 82  "type"
 83  "var"
 84] @keyword
 85
 86[
 87  (interpreted_string_literal)
 88  (raw_string_literal)
 89  (rune_literal)
 90] @string
 91
 92(escape_sequence) @escape
 93
 94[
 95  (int_literal)
 96  (float_literal)
 97  (imaginary_literal)
 98] @number
 99
100[
101  (true)
102  (false)
103  (nil)
104  (iota)
105] @constant.builtin
106
107(comment) @comment