site/node_modules/shiki/dist/langs/ada.mjs

7 lines
51 KiB
JavaScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
const lang = Object.freeze({ "displayName": "Ada", "name": "ada", "patterns": [{ "include": "#library_unit" }, { "include": "#comment" }, { "include": "#use_clause" }, { "include": "#with_clause" }, { "include": "#pragma" }, { "include": "#keyword" }], "repository": { "abort_statement": { "begin": "(?i)\\babort\\b", "beginCaptures": { "0": { "name": "keyword.control.ada" } }, "end": ";", "endCaptures": { "0": { "name": "punctuation.ada" } }, "name": "meta.statement.abort.ada", "patterns": [{ "match": ",", "name": "punctuation.ada" }, { "match": "\\b(\\w|\\d|\\.|_)+\\b", "name": "entity.name.task.ada" }] }, "accept_statement": { "begin": "(?i)\\b(accept)\\s+((?:\\w|\\d|\\.|_)+)\\b", "beginCaptures": { "1": { "name": "keyword.control.ada" }, "2": { "name": "entity.name.accept.ada" } }, "end": "(?i)(?:\\b(end)\\s*(\\s\\2)?\\s*)?(;)", "endCaptures": { "1": { "name": "keyword.control.ada" }, "2": { "name": "entity.name.accept.ada" }, "3": { "name": "punctuation.ada" } }, "name": "meta.statement.accept.ada", "patterns": [{ "begin": "(?i)\\bdo\\b", "beginCaptures": { "0": { "name": "keyword.control.ada" } }, "end": "(?i)\\b(?=end)\\b", "patterns": [{ "include": "#statement" }] }, { "include": "#parameter_profile" }] }, "access_definition": { "captures": { "1": { "name": "storage.visibility.ada" }, "2": { "name": "storage.visibility.ada" }, "3": { "name": "storage.modifier.ada" }, "4": { "name": "entity.name.type.ada" } }, "match": "(?i)(not\\s+null\\s+)?(access)\\s+(constant\\s+)?((?:\\w|\\d|\\.|_)+)\\b", "name": "meta.declaration.access.definition.ada" }, "access_type_definition": { "begin": "(?i)\\b(not\\s+null\\s+)?(access)\\b", "beginCaptures": { "1": { "name": "storage.visibility.ada" }, "2": { "name": "storage.visibility.ada" } }, "end": "(?i)(?=(with|;))", "name": "meta.declaration.type.definition.access.ada", "patterns": [{ "match": "(?i)\\ball\\b", "name": "storage.visibility.ada" }, { "match": "(?i)\\bconstant\\b", "name": "storage.modifier.ada" }, { "include": "#subtype_mark" }] }, "actual_parameter_part": { "begin": "\\(", "captures": { "0": { "name": "punctuation.ada" } }, "end": "\\)", "patterns": [{ "match": ",", "name": "punctuation.ada" }, { "include": "#parameter_association" }] }, "adding_operator": { "match": "(\\+|-|\\&)", "name": "keyword.operator.adding.ada" }, "array_aggregate": { "begin": "\\(", "captures": { "0": { "name": "punctuation.ada" } }, "end": "\\)", "name": "meta.definition.array.aggregate.ada", "patterns": [{ "match": ",", "name": "punctuation.ada" }, { "include": "#positional_array_aggregate" }, { "include": "#array_component_association" }] }, "array_component_association": { "captures": { "1": { "name": "variable.name.ada" }, "2": { "name": "keyword.other.ada" }, "3": { "patterns": [{ "match": "<>", "name": "keyword.modifier.unknown.ada" }, { "include": "#expression" }] } }, "match": "(?i)\\b([^(=>)]*)\\s*(=>)\\s*([^,\\)]+)", "name": "meta.definition.array.aggregate.component.ada" }, "array_dimensions": { "begin": "\\(", "captures": { "0": { "name": "punctuation.ada" } }, "end": "\\)", "name": "meta.declaration.type.definition.array.dimensions.ada", "patterns": [{ "match": ",", "name": "punctuation.ada" }, { "match": "(?i)\\brange\\b", "name": "storage.modifier.ada" }, { "match": "<>", "name": "keyword.modifier.unknown.ada" }, { "match": "\\.\\.", "name": "keyword.ada" }, { "include": "#expression" }, { "patterns": [{ "include": "#subtype_mark" }] }] }, "array_type_definition": { "begin": "(?i)\\barray\\b", "beginCaptures": { "0": { "name": "storage.modifier.ada" } }, "end": "(?i)(?=(with|;))", "name": "meta.declaration.type.definition.array.ada", "patterns": [{ "include": "#array_dimensions" }, { "match": "(?i)\\bof\\b", "name": "storage.modifier.ada" }, { "match": "(?i)\\baliased\\b", "name": "storage.visibility.ada" }, { "include": "#access_definition" }, { "include": "#subtype_mark" }] }, "aspect_clause": { "begin": "(?i)\\b(for)\\b", "beginCaptures": { "1": { "name": "keyword.ada" }, "2": { "patterns": [{ "include": "#subtype_mark" }] }, "3": { "name": "punctuation.ada" }, "5": { "n
var ada = [
lang
];
export { ada as default };