|
| 1 | +(pattern_expression) @string.regex |
| 2 | +(numeric_literal) @number |
| 3 | +(string_literal) @string |
| 4 | + |
| 5 | +(keyword_pound_pound_class) @keyword |
| 6 | +(keyword_pound_pound_super) @keyword |
| 7 | +(system_defined_variable) @variable.special |
| 8 | +(system_defined_function) @variable.special |
| 9 | +(sql_field_modifier) @variable.special |
| 10 | +(property_name) @property |
| 11 | +(method_name) @function |
| 12 | +(parameter_name) @property |
| 13 | +(class_name) @type |
| 14 | +(macro) @constant |
| 15 | + |
| 16 | +(routine_ref) @variable |
| 17 | +(sql_field_identifier) @variable |
| 18 | +(lvn) @variable |
| 19 | +(gvn) @variable |
| 20 | +(ssvn) @variable |
| 21 | +(instance_variable) @variable |
| 22 | +(objectscript_identifier) @variable |
| 23 | + |
| 24 | +(method_arg) @variable.parameter |
| 25 | +; I didn't include ( or ) in this, because they are often grouped |
| 26 | +; as part of a sequence that gets turned into a single token, so they |
| 27 | +; don't get matched, and one ends up getting colored differently than the other. |
| 28 | +[ |
| 29 | + "_" |
| 30 | + "," |
| 31 | + ":" |
| 32 | + "." |
| 33 | + ".." |
| 34 | + "..." |
| 35 | + "'[" |
| 36 | + "']" |
| 37 | + "']]" |
| 38 | + "\"" |
| 39 | + "\"\"" |
| 40 | + "[" |
| 41 | + "]" |
| 42 | + "]]" |
| 43 | + "{" |
| 44 | + "}" |
| 45 | + "/" |
| 46 | + "\\" |
| 47 | + "#" |
| 48 | + "|" |
| 49 | + "||" |
| 50 | + "/" |
| 51 | + "/" |
| 52 | + "$$" |
| 53 | +] @punctuation |
| 54 | + |
| 55 | +[ |
| 56 | + "'&" |
| 57 | + "&" |
| 58 | + "&&" |
| 59 | + "'<" |
| 60 | + "'=" |
| 61 | + "'>" |
| 62 | + "^" |
| 63 | + "-" |
| 64 | + "^$" |
| 65 | + "+" |
| 66 | + "<" |
| 67 | + "<=" |
| 68 | + "=" |
| 69 | + ">" |
| 70 | + ">=" |
| 71 | + "@" |
| 72 | + "*" |
| 73 | + "**" |
| 74 | + "'" |
| 75 | + "'!" |
| 76 | + "'?" |
| 77 | + "!" |
| 78 | + "?" |
| 79 | +] @operator |
| 80 | + |
| 81 | +(json_string_literal) @string |
| 82 | +(json_boolean_literal) @boolean |
| 83 | +(json_number_literal) @number |
| 84 | +(json_null_literal) @string |
| 85 | +(bracket) @punctuation.bracket |
| 86 | + |
| 87 | +;; inherits: objectscript_expr |
| 88 | +(locktype) @variable |
| 89 | + |
| 90 | +(macro_arg) @variable |
| 91 | +(macro_value) @constant.builtin |
| 92 | +keyword: (_) @keyword |
| 93 | + |
| 94 | +(embedded_js_special_case_complete) @punctuation.special |
| 95 | +(embedded_sql_marker) @punctuation.special |
| 96 | +(embedded_sql_reverse_marker) @punctuation.special |
| 97 | +(html_marker) @punctuation.special |
| 98 | +(html_marker_reversed) @punctuation.special |
| 99 | + |
| 100 | +(attribute) @attribute |
| 101 | + |
| 102 | +(open_keywords) @attribute |
| 103 | +(use_keywords) @attribute |
| 104 | +(close_parameter_option_value) @attribute |
| 105 | + |
| 106 | +[ |
| 107 | + (line_comment_1) |
| 108 | + (line_comment_2) |
| 109 | + (line_comment_3) |
| 110 | + (line_comment_4) |
| 111 | + (block_comment) |
| 112 | +] @comment |
| 113 | + |
| 114 | +(tag) @tag |
| 115 | + |
| 116 | +[ |
| 117 | + "--" |
| 118 | + ";" |
| 119 | + "//" |
| 120 | + "#;" |
| 121 | + "##;" |
| 122 | + "$" |
| 123 | +] @punctuation |
| 124 | + |
| 125 | +;; inherits: objectscript_core |
| 126 | +; ------------------ UDL ------------------- |
| 127 | + |
| 128 | +[ |
| 129 | + (method_keyword_codemode_expression) |
| 130 | + (call_method_keyword) |
| 131 | + (method_keyword) |
| 132 | + (class_keywords) |
| 133 | + (query_keywords) |
| 134 | + (trigger_keyword) |
| 135 | + (method_keyword_language) |
| 136 | + (relationship_keyword) |
| 137 | + (foreignkey_keyword) |
| 138 | + (parameter_keyword) |
| 139 | + (projection_keyword) |
| 140 | + (index_keyword) |
| 141 | + (index_keyword_extent) |
| 142 | + (xdata_keyword) |
| 143 | + (xdata_keyword_mimetype) |
| 144 | + (property_keyword) |
| 145 | + |
| 146 | +] @attribute |
| 147 | + |
| 148 | +(documatic_line) @comment.doc |
| 149 | + |
| 150 | +(query_name) @property |
| 151 | +(property_name) @property |
| 152 | +(relationship_name) @property |
| 153 | +(foreignkey_name) @property |
| 154 | +(parameter_name) @property |
| 155 | +(projection_name) @property |
| 156 | +(index_name) @property |
| 157 | +(xdata_name) @property |
| 158 | +(storage_name) @property |
| 159 | + |
| 160 | +(return_type) @type.builtin |
| 161 | +(typename) @type |
| 162 | +(parameter_type) @type.builtin |
| 163 | +(index_type) @type.builtin |
| 164 | +(projection_type) @type.builtin |
| 165 | +(property_type) @type.builtin |
| 166 | +(index_property_type) @type.builtin |
| 167 | + |
| 168 | +(identifier) @variable |
0 commit comments