| 1 | [ |
| 2 | (import) |
| 3 | ] @keyword.control.import |
| 4 | |
| 5 | [ |
| 6 | (package) |
| 7 | ] @namespace |
| 8 | |
| 9 | [ |
| 10 | (with) |
| 11 | (as) |
| 12 | (every) |
| 13 | (some) |
| 14 | (in) |
| 15 | (default) |
| 16 | "null" |
| 17 | ] @keyword.control |
| 18 | |
| 19 | [ |
| 20 | (not) |
| 21 | (if) |
| 22 | (contains) |
| 23 | (else) |
| 24 | ] @keyword.control.conditional |
| 25 | |
| 26 | [ |
| 27 | (boolean) |
| 28 | ] @constant.builtin.boolean |
| 29 | |
| 30 | [ |
| 31 | (assignment_operator) |
| 32 | (bool_operator) |
| 33 | (arith_operator) |
| 34 | (bin_operator) |
| 35 | ] @operator |
| 36 | |
| 37 | [ |
| 38 | (string) |
| 39 | (raw_string) |
| 40 | ] @string |
| 41 | |
| 42 | (term (ref (var))) @variable |
| 43 | |
| 44 | (comment) @comment.line |
| 45 | |
| 46 | (number) @constant.numeric.integer |
| 47 | |
| 48 | (expr_call func_name: (fn_name (var) @function .)) |
| 49 | |
| 50 | (expr_call func_arguments: (fn_args (expr) @variable.parameter)) |
| 51 | |
| 52 | (rule_args (term) @variable.parameter) |
| 53 | |
| 54 | [ |
| 55 | (open_paren) |
| 56 | (close_paren) |
| 57 | (open_bracket) |
| 58 | (close_bracket) |
| 59 | (open_curly) |
| 60 | (close_curly) |
| 61 | ] @punctuation.bracket |
| 62 | |
| 63 | (rule (rule_head (var) @function.method)) |
| 64 | |
| 65 | (rule |
| 66 | (rule_head (term (ref (var) @namespace))) |
| 67 | (rule_body (query (literal (expr (expr_infix (expr (term (ref (var)) @_output)))))) (#eq? @_output @namespace)) |
| 68 | ) |