| 1 | (line_comment) @comment.line |
| 2 | |
| 3 | (block_comment) @comment.block |
| 4 | |
| 5 | (identifier) @variable |
| 6 | |
| 7 | [ |
| 8 | "access" |
| 9 | "after" |
| 10 | "alias" |
| 11 | "architecture" |
| 12 | "array" |
| 13 | "attribute" |
| 14 | "block" |
| 15 | "body" |
| 16 | "component" |
| 17 | "configuration" |
| 18 | "context" |
| 19 | "disconnect" |
| 20 | "entity" |
| 21 | "file" |
| 22 | "force" |
| 23 | "generate" |
| 24 | "generic" |
| 25 | "group" |
| 26 | "label" |
| 27 | "literal" |
| 28 | "map" |
| 29 | "new" |
| 30 | "package" |
| 31 | "parameter" |
| 32 | "port" |
| 33 | "property" |
| 34 | "range" |
| 35 | "reject" |
| 36 | "release" |
| 37 | "sequence" |
| 38 | "transport" |
| 39 | "unaffected" |
| 40 | "view" |
| 41 | "vunit" |
| 42 | ] @keyword |
| 43 | |
| 44 | [ |
| 45 | (ALL) |
| 46 | (OTHERS) |
| 47 | "<>" |
| 48 | (DEFAULT) |
| 49 | (OPEN) |
| 50 | ] @constant.builtin |
| 51 | |
| 52 | [ |
| 53 | "is" |
| 54 | "begin" |
| 55 | "end" |
| 56 | ] @keyword |
| 57 | |
| 58 | (parameter_specification |
| 59 | "in" @keyword) |
| 60 | |
| 61 | [ |
| 62 | "process" |
| 63 | "wait" |
| 64 | "on" |
| 65 | "until" |
| 66 | ] @keyword |
| 67 | |
| 68 | (timeout_clause |
| 69 | "for" @keyword) |
| 70 | |
| 71 | [ |
| 72 | "function" |
| 73 | "procedure" |
| 74 | ] @keyword.function |
| 75 | |
| 76 | [ |
| 77 | "to" |
| 78 | "downto" |
| 79 | "of" |
| 80 | ] @keyword.operator |
| 81 | |
| 82 | [ |
| 83 | "library" |
| 84 | "use" |
| 85 | ] @keyword.control.import |
| 86 | |
| 87 | [ |
| 88 | "subtype" |
| 89 | "type" |
| 90 | "record" |
| 91 | "units" |
| 92 | "constant" |
| 93 | "signal" |
| 94 | "variable" |
| 95 | ] @keyword.storage.type |
| 96 | |
| 97 | [ |
| 98 | "protected" |
| 99 | "private" |
| 100 | "pure" |
| 101 | "impure" |
| 102 | "inertial" |
| 103 | "postponed" |
| 104 | "guarded" |
| 105 | "out" |
| 106 | "inout" |
| 107 | "linkage" |
| 108 | "buffer" |
| 109 | "register" |
| 110 | "bus" |
| 111 | "shared" |
| 112 | ] @keyword.storage.modifier |
| 113 | |
| 114 | (mode |
| 115 | "in" @keyword.storage.modifier) |
| 116 | |
| 117 | (force_mode |
| 118 | "in" @keyword.storage.modifier) |
| 119 | |
| 120 | [ |
| 121 | "while" |
| 122 | "loop" |
| 123 | "next" |
| 124 | "exit" |
| 125 | ] @keyword.control.repeat |
| 126 | |
| 127 | (for_loop |
| 128 | "for" @keyword.control.repeat) |
| 129 | |
| 130 | (block_configuration |
| 131 | "for" @keyword) |
| 132 | |
| 133 | (configuration_specification |
| 134 | "for" @keyword) |
| 135 | |
| 136 | (component_configuration |
| 137 | "for" @keyword) |
| 138 | |
| 139 | (end_for |
| 140 | "for" @keyword) |
| 141 | |
| 142 | "return" @keyword.control.return |
| 143 | |
| 144 | [ |
| 145 | "assert" |
| 146 | "report" |
| 147 | "severity" |
| 148 | ] @keyword |
| 149 | |
| 150 | [ |
| 151 | "if" |
| 152 | "then" |
| 153 | "elsif" |
| 154 | "case" |
| 155 | ] @keyword.control.conditional |
| 156 | |
| 157 | (when_element |
| 158 | "when" @keyword.control.conditional) |
| 159 | |
| 160 | (case_generate_alternative |
| 161 | "when" @keyword.control.conditional) |
| 162 | |
| 163 | (else_statement |
| 164 | "else" @keyword.control.conditional) |
| 165 | |
| 166 | (else_generate |
| 167 | "else" @keyword.control.conditional) |
| 168 | |
| 169 | [ |
| 170 | "with" |
| 171 | "select" |
| 172 | ] @keyword.control.conditional |
| 173 | |
| 174 | (when_expression |
| 175 | "when" @keyword.control.conditional) |
| 176 | |
| 177 | (else_expression |
| 178 | "else" @keyword.control.conditional) |
| 179 | |
| 180 | (else_waveform |
| 181 | "else" @keyword.control.conditional) |
| 182 | |
| 183 | (else_expression_or_unaffected |
| 184 | "else" @keyword.control.conditional) |
| 185 | |
| 186 | "null" @constant.builtin |
| 187 | |
| 188 | (user_directive) @keyword.directive |
| 189 | |
| 190 | (protect_directive) @keyword.directive |
| 191 | |
| 192 | (warning_directive) @keyword.directive |
| 193 | |
| 194 | (error_directive) @keyword.directive |
| 195 | |
| 196 | (if_conditional_analysis |
| 197 | "if" @keyword.directive) |
| 198 | |
| 199 | (if_conditional_analysis |
| 200 | "then" @keyword.directive) |
| 201 | |
| 202 | (elsif_conditional_analysis |
| 203 | "elsif" @keyword.directive) |
| 204 | |
| 205 | (else_conditional_analysis |
| 206 | "else" @keyword.directive) |
| 207 | |
| 208 | (end_conditional_analysis |
| 209 | "end" @keyword.directive) |
| 210 | |
| 211 | (end_conditional_analysis |
| 212 | "if" @keyword.directive) |
| 213 | |
| 214 | (directive_body) @keyword.directive |
| 215 | |
| 216 | (directive_constant_builtin) @constant.builtin |
| 217 | |
| 218 | (directive_error) @keyword.directive |
| 219 | |
| 220 | (directive_protect) @keyword.directive |
| 221 | |
| 222 | (directive_warning) @keyword.directive |
| 223 | |
| 224 | [ |
| 225 | (condition_conversion) |
| 226 | (relational_operator) |
| 227 | (sign) |
| 228 | (adding_operator) |
| 229 | (exponentiate) |
| 230 | (variable_assignment) |
| 231 | (signal_assignment) |
| 232 | "*" |
| 233 | "/" |
| 234 | ":" |
| 235 | "=>" |
| 236 | ] @operator |
| 237 | |
| 238 | [ |
| 239 | (unary_operator) |
| 240 | (logical_operator) |
| 241 | (shift_operator) |
| 242 | "mod" |
| 243 | "not" |
| 244 | "rem" |
| 245 | ] @keyword.operator |
| 246 | |
| 247 | [ |
| 248 | "'" |
| 249 | "," |
| 250 | "." |
| 251 | ";" |
| 252 | ] @punctuation.delimiter |
| 253 | |
| 254 | [ |
| 255 | "(" |
| 256 | ")" |
| 257 | "[" |
| 258 | "]" |
| 259 | "<<" |
| 260 | ">>" |
| 261 | ] @punctuation.bracket |
| 262 | |
| 263 | "@" @punctuation.special |
| 264 | |
| 265 | [ |
| 266 | (decimal_integer) |
| 267 | (string_literal_std_logic) |
| 268 | ] @constant.numeric.integer |
| 269 | |
| 270 | (decimal_float) @constant.numeric.float |
| 271 | |
| 272 | (bit_string_length) @type.parameter |
| 273 | |
| 274 | (bit_string_base) @type.builtin |
| 275 | |
| 276 | (bit_string_value) @constant.numeric.integer |
| 277 | |
| 278 | (based_literal |
| 279 | (based_base) @type.builtin |
| 280 | (based_integer) @constant.numeric.integer) |
| 281 | |
| 282 | (based_literal |
| 283 | (based_base) @type.builtin |
| 284 | (based_float) @constant.numeric.float) |
| 285 | |
| 286 | (string_literal) @string |
| 287 | |
| 288 | (character_literal) @constant.character |
| 289 | |
| 290 | (library_constant_std_logic) @constant.builtin |
| 291 | |
| 292 | (library_constant) @constant.builtin |
| 293 | |
| 294 | (library_function) @function.builtin |
| 295 | |
| 296 | (library_constant_boolean) @constant.builtin.boolean |
| 297 | |
| 298 | (library_constant_character) @constant.character |
| 299 | |
| 300 | (unit) @keyword.storage.modifier |
| 301 | |
| 302 | (library_constant_unit) @keyword.storage.modifier |
| 303 | |
| 304 | (label) @label |
| 305 | |
| 306 | (generic_map_aspect |
| 307 | "generic" @constructor |
| 308 | "map" @constructor) |
| 309 | |
| 310 | (port_map_aspect |
| 311 | "port" @constructor |
| 312 | "map" @constructor) |
| 313 | |
| 314 | (selection |
| 315 | (identifier) @variable.other.member) |
| 316 | |
| 317 | (_ |
| 318 | view: (_) @type) |
| 319 | |
| 320 | (_ |
| 321 | type: (_) @type) |
| 322 | |
| 323 | (_ |
| 324 | library: (_) @namespace) |
| 325 | |
| 326 | (_ |
| 327 | package: (_) @namespace) |
| 328 | |
| 329 | (_ |
| 330 | entity: (_) @namespace) |
| 331 | |
| 332 | (_ |
| 333 | component: (_) @namespace) |
| 334 | |
| 335 | (_ |
| 336 | configuration: (_) @type.parameter) |
| 337 | |
| 338 | (_ |
| 339 | architecture: (_) @type.parameter) |
| 340 | |
| 341 | (_ |
| 342 | function: (_) @function) |
| 343 | |
| 344 | (_ |
| 345 | procedure: (_) @function.method) |
| 346 | |
| 347 | (_ |
| 348 | attribute: (_) @attribute) |
| 349 | |
| 350 | (_ |
| 351 | constant: (_) @constant) |
| 352 | |
| 353 | (_ |
| 354 | generic: (_) @variable.parameter) |
| 355 | |
| 356 | (_ |
| 357 | view: (name |
| 358 | (_)) @type) |
| 359 | |
| 360 | (_ |
| 361 | type: (name |
| 362 | (_)) @type) |
| 363 | |
| 364 | (_ |
| 365 | entity: (name |
| 366 | (_)) @namespace) |
| 367 | |
| 368 | (_ |
| 369 | component: (name |
| 370 | (_)) @namespace) |
| 371 | |
| 372 | (_ |
| 373 | configuration: (name |
| 374 | (_)) @namespace) |
| 375 | |
| 376 | (library_type) @type.builtin |
| 377 |