| 1 |
|
| 2 |
(comment) @comment |
| 3 |
|
| 4 |
|
| 5 |
[ |
| 6 |
(int_lit) |
| 7 |
(uint_lit) |
| 8 |
] @constant.numeric.integer |
| 9 |
|
| 10 |
(none_lit) @constant.builtin |
| 11 |
(bool_lit) @constant.builtin.boolean |
| 12 |
|
| 13 |
[ |
| 14 |
(ascii_string_lit) |
| 15 |
(utf8_string_lit) |
| 16 |
] @string |
| 17 |
|
| 18 |
[ |
| 19 |
(buffer_lit) |
| 20 |
(standard_principal_lit) |
| 21 |
(contract_principal_lit) |
| 22 |
] @string.special |
| 23 |
|
| 24 |
|
| 25 |
[ |
| 26 |
(native_type) |
| 27 |
(trait_type) |
| 28 |
] @type |
| 29 |
|
| 30 |
|
| 31 |
[ |
| 32 |
"(" |
| 33 |
")" |
| 34 |
"{" |
| 35 |
"}" |
| 36 |
"<" |
| 37 |
">" |
| 38 |
] @punctuation.bracket |
| 39 |
|
| 40 |
[ |
| 41 |
"," |
| 42 |
] @punctuation.delimiter |
| 43 |
|
| 44 |
|
| 45 |
(list_lit_token) @keyword |
| 46 |
(some_lit ("some") @keyword) |
| 47 |
(response_lit [ |
| 48 |
"ok" |
| 49 |
"err" |
| 50 |
] @keyword) |
| 51 |
|
| 52 |
[ |
| 53 |
"+" |
| 54 |
"-" |
| 55 |
"*" |
| 56 |
"/" |
| 57 |
"mod" |
| 58 |
"pow" |
| 59 |
"<" |
| 60 |
"<=" |
| 61 |
">" |
| 62 |
">=" |
| 63 |
"and" |
| 64 |
"or" |
| 65 |
"xor" |
| 66 |
] @keyword.operator |
| 67 |
|
| 68 |
|
| 69 |
(function_signature (identifier) @function) |
| 70 |
(function_signature_for_trait (identifier) @function) |
| 71 |
(contract_function_call operator: (identifier) @function) |
| 72 |
|
| 73 |
(basic_native_form operator: (native_identifier) @function.builtin) |
| 74 |
[ |
| 75 |
"let" |
| 76 |
] @function.builtin |
| 77 |
|
| 78 |
[ |
| 79 |
"impl-trait" |
| 80 |
"use-trait" |
| 81 |
"define-trait" |
| 82 |
"define-read-only" |
| 83 |
"define-private" |
| 84 |
"define-public" |
| 85 |
"define-data-var" |
| 86 |
"define-fungible-token" |
| 87 |
"define-non-fungible-token" |
| 88 |
"define-constant" |
| 89 |
"define-map" |
| 90 |
] @function.special |
| 91 |
|
| 92 |
|
| 93 |
(function_parameter) @variable.parameter |
| 94 |
(trait_usage trait_alias: (identifier) @type.parameter) |
| 95 |
|
| 96 |
(tuple_lit key: (identifier) @variable) |
| 97 |
(tuple_type key: (identifier) @variable) |
| 98 |
(tuple_type_for_trait key: (identifier) @variable) |
| 99 |
|
| 100 |
(global) @variable.builtin |
| 101 |
|