| 1 | (type) @type |
| 2 | (type "const" @type) |
| 3 | |
| 4 | [ |
| 5 | "else" |
| 6 | "if" |
| 7 | "match" |
| 8 | "switch" |
| 9 | ] @keyword.control.conditional |
| 10 | |
| 11 | [ |
| 12 | "export" |
| 13 | "use" |
| 14 | ] @keyword.control.import |
| 15 | |
| 16 | [ |
| 17 | "continue" |
| 18 | "for" |
| 19 | "break" |
| 20 | ] @keyword.control.repeat |
| 21 | |
| 22 | "return" @keyword.control.return |
| 23 | |
| 24 | [ |
| 25 | "abort" |
| 26 | "assert" |
| 27 | ] @keyword.control.exception |
| 28 | |
| 29 | "fn" @keyword.function |
| 30 | |
| 31 | [ |
| 32 | "alloc" |
| 33 | "append" |
| 34 | "as" |
| 35 | "bool" |
| 36 | "case" |
| 37 | "const" |
| 38 | "def" |
| 39 | "defer" |
| 40 | "delete" |
| 41 | "enum" |
| 42 | "free" |
| 43 | "is" |
| 44 | "len" |
| 45 | "let" |
| 46 | "match" |
| 47 | "nullable" |
| 48 | "offset" |
| 49 | "struct" |
| 50 | "type" |
| 51 | "union" |
| 52 | "yield" |
| 53 | ] @keyword |
| 54 | |
| 55 | "static" @keyword.storage.modifier |
| 56 | |
| 57 | [ |
| 58 | "." |
| 59 | "!" |
| 60 | "~" |
| 61 | "?" |
| 62 | "*" |
| 63 | "/" |
| 64 | "%" |
| 65 | "+" |
| 66 | "-" |
| 67 | "<<" |
| 68 | ">>" |
| 69 | "::" |
| 70 | "<" |
| 71 | "<=" |
| 72 | ">" |
| 73 | ">=" |
| 74 | "==" |
| 75 | "!=" |
| 76 | "&" |
| 77 | "|" |
| 78 | "^" |
| 79 | "&&" |
| 80 | "||" |
| 81 | "=" |
| 82 | "+=" |
| 83 | "-=" |
| 84 | "*=" |
| 85 | "/=" |
| 86 | "%=" |
| 87 | "&=" |
| 88 | "|=" |
| 89 | "<<=" |
| 90 | ">>=" |
| 91 | "^=" |
| 92 | "=>" |
| 93 | ] @operator |
| 94 | |
| 95 | [ |
| 96 | "(" |
| 97 | ")" |
| 98 | "[" |
| 99 | "]" |
| 100 | ")" |
| 101 | "{" |
| 102 | "}" |
| 103 | ] @punctuation.bracket |
| 104 | |
| 105 | [ |
| 106 | ":" |
| 107 | ";" |
| 108 | ] @punctuation.delimiter |
| 109 | |
| 110 | "..." @special |
| 111 | |
| 112 | (comment) @comment |
| 113 | |
| 114 | [ |
| 115 | "false" |
| 116 | "null" |
| 117 | "true" |
| 118 | ] @constant.builtin |
| 119 | (literal "void") @constant.builtin |
| 120 | |
| 121 | (identifier) @variable |
| 122 | |
| 123 | (string_literal) @string |
| 124 | (escape_sequence) @constant.character.escape |
| 125 | (rune_literal) @string |
| 126 | (integer_literal) @constant.numeric.integer |
| 127 | (floating_literal) @constant.numeric.float |
| 128 | |
| 129 | (call_expression |
| 130 | (postfix_expression) @function) |
| 131 | (size_expression "size" @function.builtin) |
| 132 | |
| 133 | (function_declaration |
| 134 | name: (identifier) @function) |
| 135 | |
| 136 | (parameter (name) @variable.parameter) |
| 137 | |
| 138 | (field_access_expression |
| 139 | selector: (name) @variable.other.member) |
| 140 | (decl_attr) @special |
| 141 | (fndec_attrs) @special |
| 142 | |
| 143 | (struct_union_field (name)) @variable |