| 1 | [ |
| 2 | "module" |
| 3 | "type" |
| 4 | "assume" |
| 5 | "const" |
| 6 | "var" |
| 7 | "val" |
| 8 | "nondet" |
| 9 | "def" |
| 10 | "pure" |
| 11 | "action" |
| 12 | "temporal" |
| 13 | "run" |
| 14 | ] @keyword |
| 15 | |
| 16 | (match_expr "match" @keyword.control.conditional) |
| 17 | |
| 18 | (if_else_condition |
| 19 | "if" @keyword.control.conditional |
| 20 | "else" @keyword.control.conditional) |
| 21 | |
| 22 | (import "import" @keyword.control.import) |
| 23 | (import "as" @keyword.control.import) |
| 24 | (import "from" @keyword.control.import) |
| 25 | (export "export" @keyword.control.import) |
| 26 | (export "as" @keyword.control.import) |
| 27 | |
| 28 | [ |
| 29 | "true" |
| 30 | "false" |
| 31 | "Int" |
| 32 | "Nat" |
| 33 | "Bool" |
| 34 | ] @constant.builtin |
| 35 | |
| 36 | [ |
| 37 | ";" |
| 38 | "." |
| 39 | "," |
| 40 | ] @punctuation.delimiter |
| 41 | |
| 42 | [ |
| 43 | "-" |
| 44 | "+" |
| 45 | "*" |
| 46 | "/" |
| 47 | "%" |
| 48 | "<" |
| 49 | "<=" |
| 50 | "=" |
| 51 | "==" |
| 52 | "!=" |
| 53 | "=>" |
| 54 | ">" |
| 55 | ">=" |
| 56 | "^" |
| 57 | "->" |
| 58 | ] @operator |
| 59 | |
| 60 | (infix_and "and" @operator) |
| 61 | (infix_or "or" @operator) |
| 62 | (infix_iff "iff" @operator) |
| 63 | (infix_implies "implies" @operator) |
| 64 | |
| 65 | (braced_and "and" @keyword) |
| 66 | (braced_or "or" @keyword) |
| 67 | (braced_all "all" @keyword) |
| 68 | (braced_any "any" @keyword) |
| 69 | |
| 70 | [ |
| 71 | "(" |
| 72 | ")" |
| 73 | "[" |
| 74 | "]" |
| 75 | "{" |
| 76 | "}" |
| 77 | ] @punctuation.bracket |
| 78 | |
| 79 | (polymorphic_type |
| 80 | (type) @type.parameter) |
| 81 | |
| 82 | (variant_constructor) @type.enum.variant |
| 83 | |
| 84 | (type) @type |
| 85 | (int_literal) @constant.numeric.integer |
| 86 | (comment) @comment |
| 87 | (string) @string |
| 88 | |
| 89 | (operator_application |
| 90 | operator: (qualified_identifier) @function) |
| 91 | |
| 92 | (operator_definition |
| 93 | name: (qualified_identifier) @function |
| 94 | arguments: (typed_argument_list)) |