| 1 | [ |
| 2 | "alias" |
| 3 | "convert" |
| 4 | "inherit" |
| 5 | "redefine" |
| 6 | "undefine" |
| 7 | "rename" |
| 8 | "select" |
| 9 | "note" |
| 10 | "create" |
| 11 | ] @keyword.control.import |
| 12 | |
| 13 | ["export"] @keyword.control.import |
| 14 | |
| 15 | [ |
| 16 | "do" |
| 17 | "end" |
| 18 | "once" |
| 19 | "attribute" |
| 20 | ] @keyword.control |
| 21 | |
| 22 | [ |
| 23 | "class" |
| 24 | "local" |
| 25 | ] @keyword.storage.type |
| 26 | |
| 27 | [ |
| 28 | "feature" |
| 29 | "agent" |
| 30 | ] @keyword.function |
| 31 | |
| 32 | [ |
| 33 | "frozen" |
| 34 | "deferred" |
| 35 | "detachable" |
| 36 | "expanded" |
| 37 | "attached" |
| 38 | "old" |
| 39 | "like" |
| 40 | ] @keyword.storage.modifier |
| 41 | |
| 42 | (conditional ["if" "elseif" "end"] @keyword.control.conditional) |
| 43 | (else_part ["else"] @keyword.control.conditional) |
| 44 | (then_part ["then"] @keyword.control.conditional) |
| 45 | |
| 46 | (conditional_expression ["if" "else" "elseif" "end"] @keyword.control.conditional) |
| 47 | (else_part_expression ["else"] @keyword.control.conditional) |
| 48 | (then_part_expression ["then"] @keyword.control.conditional) |
| 49 | |
| 50 | (multi_branch "inspect" @keyword.control.conditional) |
| 51 | (when_part ["when" "then"] @keyword.control.conditional) |
| 52 | |
| 53 | (multi_branch_expression "inspect" @keyword.control.conditional) |
| 54 | (when_part_expression ["when" "then"] @keyword.control.conditional) |
| 55 | |
| 56 | (quantifier_loop ["∀" "∃" ":" "¦"] @keyword.control.repeat) |
| 57 | (quantifier_loop_body ["all" "some"] @keyword.control.repeat) |
| 58 | (iteration ["across" "as"] @keyword.control.repeat) |
| 59 | (initialization "from" @keyword.control.repeat) |
| 60 | (exit_condition "until" @keyword.control.repeat) |
| 61 | (loop_body "loop" @keyword.control.repeat) |
| 62 | (variant "variant" @keyword.control.repeat) |
| 63 | (loop (invariant "invariant" @keyword.control.repeat)) |
| 64 | (loop ["⟳" ":" "¦" "⟲"]@keyword.control.repeat) |
| 65 | (loop "end" @keyword.control.repeat) |
| 66 | |
| 67 | [ |
| 68 | "require" |
| 69 | "ensure" |
| 70 | "invariant" |
| 71 | "check" |
| 72 | ] @keyword.control.exception |
| 73 | |
| 74 | ["(" ")" "[" "]" "<<" ">>"] @punctuation.bracket |
| 75 | ["," ":" ";"] @punctuation.delimiter |
| 76 | |
| 77 | [ |
| 78 | (unary) |
| 79 | ":=" |
| 80 | (binary_caret) |
| 81 | (binary_mul_div) |
| 82 | (binary_plus_minus) |
| 83 | (binary_comparison) |
| 84 | (binary_and) |
| 85 | (binary_or) |
| 86 | (binary_implies) |
| 87 | (comparison) |
| 88 | (unary_not) |
| 89 | ] @operator |
| 90 | |
| 91 | (result) @variable.builtin |
| 92 | (anchored (call (_) @variable)) |
| 93 | [(verbatim_string) (basic_manifest_string)] @string |
| 94 | [(integer_constant) (real_constant)] @constant.numeric |
| 95 | (boolean_constant) @constant.builtin.boolean |
| 96 | (void) @constant.builtin |
| 97 | (current) @variable.builtin |
| 98 | (extended_feature_name (identifier) @function.method) |
| 99 | |
| 100 | (iteration (identifier) @variable) |
| 101 | (quantifier_loop (identifier) @variable) |
| 102 | (entity_declaration_group (identifier) @variable) |
| 103 | |
| 104 | (class_name) @type |
| 105 | (formal_generic) @type.parameter |
| 106 | |
| 107 | (comment) @comment.line |
| 108 | (header_comment) @comment.line.documentation |