| 1 |
[ |
| 2 |
"abort" |
| 3 |
"abs" |
| 4 |
"abstract" |
| 5 |
"accept" |
| 6 |
"access" |
| 7 |
"all" |
| 8 |
"array" |
| 9 |
"at" |
| 10 |
"begin" |
| 11 |
"declare" |
| 12 |
"delay" |
| 13 |
"delta" |
| 14 |
"digits" |
| 15 |
"do" |
| 16 |
"end" |
| 17 |
"entry" |
| 18 |
"exit" |
| 19 |
"generic" |
| 20 |
"interface" |
| 21 |
"is" |
| 22 |
"limited" |
| 23 |
"of" |
| 24 |
"others" |
| 25 |
"out" |
| 26 |
"pragma" |
| 27 |
"private" |
| 28 |
"range" |
| 29 |
"synchronized" |
| 30 |
"tagged" |
| 31 |
"task" |
| 32 |
"terminate" |
| 33 |
"until" |
| 34 |
"when" |
| 35 |
] @keyword |
| 36 |
[ |
| 37 |
"null" |
| 38 |
] @constant.builtin |
| 39 |
[ |
| 40 |
"aliased" |
| 41 |
"constant" |
| 42 |
"renames" |
| 43 |
] @keyword.storage |
| 44 |
[ |
| 45 |
"mod" |
| 46 |
"new" |
| 47 |
"protected" |
| 48 |
"record" |
| 49 |
"subtype" |
| 50 |
"type" |
| 51 |
] @type.builtin |
| 52 |
[ |
| 53 |
"with" |
| 54 |
"use" |
| 55 |
] @keyword.control.import |
| 56 |
[ |
| 57 |
"body" |
| 58 |
"function" |
| 59 |
"overriding" |
| 60 |
"procedure" |
| 61 |
"package" |
| 62 |
"separate" |
| 63 |
] @keyword.function |
| 64 |
[ |
| 65 |
"and" |
| 66 |
"in" |
| 67 |
"not" |
| 68 |
"or" |
| 69 |
"xor" |
| 70 |
] @operator |
| 71 |
[ |
| 72 |
"while" |
| 73 |
"loop" |
| 74 |
"for" |
| 75 |
"parallel" |
| 76 |
"reverse" |
| 77 |
"some" |
| 78 |
] @keyword.control.repeat |
| 79 |
[ |
| 80 |
"return" |
| 81 |
] @keyword.control.return |
| 82 |
[ |
| 83 |
"case" |
| 84 |
"if" |
| 85 |
"else" |
| 86 |
"then" |
| 87 |
"elsif" |
| 88 |
"select" |
| 89 |
] @keyword.control.conditional |
| 90 |
[ |
| 91 |
"exception" |
| 92 |
"raise" |
| 93 |
] @keyword.control.exception |
| 94 |
(comment) @comment |
| 95 |
(string_literal) @string |
| 96 |
(character_literal) @string |
| 97 |
(numeric_literal) @constant.numeric |
| 98 |
|
| 99 |
|
| 100 |
(procedure_specification name: (_) @function.builtin) |
| 101 |
(function_specification name: (_) @function.builtin) |
| 102 |
(package_declaration name: (_) @function.builtin) |
| 103 |
(package_body name: (_) @function.builtin) |
| 104 |
(generic_instantiation name: (_) @function.builtin) |
| 105 |
(entry_declaration . (identifier) @function.builtin) |
| 106 |
|
| 107 |
|
| 108 |
(use_clause "use" @keyword.control.import "type" @keyword.control.import) |
| 109 |
(with_clause "private" @keyword.control.import) |
| 110 |
(with_clause "limited" @keyword.control.import) |
| 111 |
(use_clause (_) @namespace) |
| 112 |
(with_clause (_) @namespace) |
| 113 |
|
| 114 |
(loop_statement "end" @keyword.control.repeat) |
| 115 |
(if_statement "end" @keyword.control.conditional) |
| 116 |
(loop_parameter_specification "in" @keyword.control.repeat) |
| 117 |
(iterator_specification ["in" "of"] @keyword.control.repeat) |
| 118 |
(range_attribute_designator "range" @keyword.control.repeat) |
| 119 |
|
| 120 |
(raise_statement "with" @keyword.control.exception) |
| 121 |
|
| 122 |
(gnatprep_declarative_if_statement) @keyword.directive |
| 123 |
(gnatprep_if_statement) @keyword.directive |
| 124 |
(gnatprep_identifier) @keyword.directive |
| 125 |
|
| 126 |
(subprogram_declaration "is" @keyword.function "abstract" @keyword.function) |
| 127 |
(aspect_specification "with" @keyword.function) |
| 128 |
|
| 129 |
(full_type_declaration "is" @type.builtin) |
| 130 |
(subtype_declaration "is" @type.builtin) |
| 131 |
(record_definition "end" @type.builtin) |
| 132 |
(full_type_declaration (_ "access" @type.builtin)) |
| 133 |
(array_type_definition "array" @type.builtin "of" @type.builtin) |
| 134 |
(access_to_object_definition "access" @type.builtin) |
| 135 |
(access_to_object_definition "access" @type.builtin |
| 136 |
[ |
| 137 |
(general_access_modifier "constant" @type.builtin) |
| 138 |
(general_access_modifier "all" @type.builtin) |
| 139 |
] |
| 140 |
) |
| 141 |
(range_constraint "range" @type.builtin) |
| 142 |
(signed_integer_type_definition "range" @type.builtin) |
| 143 |
(index_subtype_definition "range" @type.builtin) |
| 144 |
(record_type_definition "abstract" @type.builtin) |
| 145 |
(record_type_definition "tagged" @type.builtin) |
| 146 |
(record_type_definition "limited" @type.builtin) |
| 147 |
(record_type_definition (record_definition "null" @type.builtin)) |
| 148 |
(private_type_declaration "is" @type.builtin "private" @type.builtin) |
| 149 |
(private_type_declaration "tagged" @type.builtin) |
| 150 |
(private_type_declaration "limited" @type.builtin) |
| 151 |
(task_type_declaration "task" @type.builtin "is" @type.builtin) |
| 152 |
|
| 153 |
|
| 154 |
(expression_function_declaration |
| 155 |
(function_specification) |
| 156 |
"is" |
| 157 |
(_) @attribute |
| 158 |
) |
| 159 |
(subprogram_declaration (aspect_specification) @attribute) |
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|