|
61 | 61 | "^"
|
62 | 62 | "&&"
|
63 | 63 | "||"
|
| 64 | + "->" |
64 | 65 | ] @operator
|
65 | 66 |
|
66 | 67 | ; constructor
|
|
78 | 79 | ; type.builtin
|
79 | 80 | ; ------------
|
80 | 81 | ((identifier) @type.builtin
|
81 |
| - (#eq? @type.builtin "SendParameters")) |
| 82 | + (#any-of? @type.builtin "Context" "SendParameters" "StateInit" "StdAddress" "VarAddress")) |
82 | 83 |
|
83 | 84 | (bounced_type
|
84 | 85 | "bounced" @type.builtin
|
|
96 | 97 | (tlb_serialization
|
97 | 98 | "as" @keyword
|
98 | 99 | type: (identifier) @type.builtin
|
99 |
| - (#any-of? @type.builtin |
100 |
| - "int8" "int16" "int32" "int64" "int128" "int256" "int257" "uint8" "uint16" "uint32" "uint64" |
101 |
| - "uint128" "uint256" "coins" "remaining" "bytes32" "bytes64")) |
| 100 | + (#match? @type.builtin |
| 101 | + "^(coins|remaining|bytes32|bytes64|int257|u?int(?:2[0-5][0-6]|1[0-9][0-9]|[1-9][0-9]?))$")) |
102 | 102 |
|
103 | 103 | ; string
|
104 | 104 | ; ------
|
|
132 | 132 | ((identifier) @constant.builtin
|
133 | 133 | (#any-of? @constant.builtin
|
134 | 134 | "SendBounceIfActionFail" "SendPayGasSeparately" "SendIgnoreErrors" "SendDestroyIfZero"
|
135 |
| - "SendRemainingValue" "SendRemainingBalance" "ReserveExact" "ReserveAllExcept" "ReserveAtMost" |
136 |
| - "ReserveAddOriginalBalance" "ReserveInvertSign" "ReserveBounceIfActionFail")) |
| 135 | + "SendRemainingValue" "SendRemainingBalance" "SendOnlyEstimateFee" "ReserveExact" |
| 136 | + "ReserveAllExcept" "ReserveAtMost" "ReserveAddOriginalBalance" "ReserveInvertSign" |
| 137 | + "ReserveBounceIfActionFail")) |
137 | 138 |
|
138 | 139 | ; property
|
139 | 140 | ; --------
|
|
177 | 178 | [
|
178 | 179 | "fun"
|
179 | 180 | "native"
|
| 181 | + "asm" |
180 | 182 | ] @keyword.function
|
181 | 183 |
|
182 | 184 | ; keyword.operator
|
|
244 | 246 | (native_function
|
245 | 247 | name: (identifier) @function)
|
246 | 248 |
|
| 249 | +(asm_function |
| 250 | + name: (identifier) @function) |
| 251 | + |
247 | 252 | (global_function
|
248 | 253 | name: (identifier) @function)
|
249 | 254 |
|
|
276 | 281 | (method_call_expression
|
277 | 282 | name: (identifier) @function.method.call)
|
278 | 283 |
|
279 |
| -; function.builtin |
280 |
| -; ---------------- |
281 |
| -(static_call_expression |
282 |
| - name: (identifier) @function.builtin |
283 |
| - (#any-of? @function.builtin |
284 |
| - "log" "log2" "send" "sender" "require" "now" "myBalance" "myAddress" "newAddress" |
285 |
| - "contractAddress" "contractAddressExt" "emit" "cell" "ton" "dump" "dumpStack" "beginString" |
286 |
| - "beginComment" "beginTailString" "beginStringFromBuilder" "beginCell" "emptyCell" "randomInt" |
287 |
| - "random" "checkSignature" "checkDataSignature" "sha256" "min" "max" "abs" "pow" "pow2" "throw" |
288 |
| - "nativeThrowIf" "nativeThrowUnless" "getConfigParam" "nativeRandomize" "nativeRandomizeLt" |
289 |
| - "nativePrepareRandom" "nativeRandom" "nativeRandomInterval" "nativeReserve")) |
290 |
| - |
291 | 284 | ; attribute
|
292 | 285 | ; ---------
|
293 | 286 | [
|
|
0 commit comments