7 lines
17 KiB
JavaScript
7 lines
17 KiB
JavaScript
|
const lang = Object.freeze({ "displayName": "ABAP", "fileTypes": ["abap", "ABAP"], "foldingStartMarker": "/\\*\\*|\\{\\s*$", "foldingStopMarker": "\\*\\*/|^\\s*\\}", "name": "abap", "patterns": [{ "captures": { "1": { "name": "punctuation.definition.comment.abap" } }, "match": "^\\*.*\\n?", "name": "comment.line.full.abap" }, { "captures": { "1": { "name": "punctuation.definition.comment.abap" } }, "match": '".*\\n?', "name": "comment.line.partial.abap" }, { "match": "(?<![^\\s])##.*?(?=([\\.:,\\s]))", "name": "comment.line.pragma.abap" }, { "match": "(?i)(?<=(?:\\s|~|-))(?<=(?:->|=>))([a-z_\\/][a-z_0-9\\/]*)(?=\\s+(?:=|\\+=|-=|\\*=|\\/=|&&=|&=)\\s+)", "name": "variable.other.abap" }, { "match": "\\b[0-9]+(\\b|\\.|,)", "name": "constant.numeric.abap" }, { "match": "(?ix)(^|\\s+)((PUBLIC|PRIVATE|PROTECTED)\\sSECTION)(?=\\s+|:|\\.)", "name": "storage.modifier.class.abap" }, { "begin": "(?<!\\\\)(\\|)(.*?)", "beginCaptures": { "1": { "name": "constant.character.escape.abap" } }, "end": "(?<!\\\\)(\\||(\\\\\\\\\\|))", "endCaptures": { "1": { "name": "constant.character.escape.abap" } }, "name": "string.interpolated.abap", "patterns": [{ "match": "({ )|( })", "name": "constant.character.escape" }, { "match": "(?<={ ).*?(?= })", "name": "variable.other.abap" }, { "match": "\\\\\\|", "name": "constant.character.escape.abap" }] }, { "begin": "'", "end": "'", "name": "string.quoted.single.abap", "patterns": [{ "match": "''", "name": "constant.character.escape.abap" }] }, { "begin": "`", "end": "`", "name": "string.quoted.single.abap", "patterns": [{ "match": "``", "name": "constant.character.escape.abap" }] }, { "begin": "(?i)^\\s*(class)\\s([a-z_\\/][a-z_0-9\\/]*)", "beginCaptures": { "1": { "name": "storage.type.block.abap" }, "2": { "name": "entity.name.type.block.abap" } }, "end": "\\s*\\.\\s*\\n?", "name": "meta.block.begin.implementation.abap", "patterns": [{ "match": "(?ix)(^|\\s+)(definition|implementation|public|inheriting\\s+from|final|deferred|abstract|shared\\s+memory\\s+enabled|(global|local)*\\s*friends|(create\\s+(public|protected|private))|for\\s+behavior\\s+of|for\\s+testing|risk\\s+level\\s+(critical|dangerous|harmless))|duration\\s(short|medium|long)(?=\\s+|\\.)", "name": "storage.modifier.class.abap" }, { "begin": "(?=[A-Za-z_][A-Za-z0-9_]*)", "contentName": "entity.name.type.block.abap", "end": "(?![A-Za-z0-9_])", "patterns": [{ "include": "#generic_names" }] }] }, { "begin": "(?ix)^\\s*(method)\\s(?:([a-z_\\/][a-z_0-9\\/]*)~)?([a-z_\\/][a-z_0-9\\/]*)", "beginCaptures": { "1": { "name": "storage.type.block.abap" }, "2": { "name": "entity.name.type.abap" }, "3": { "name": "entity.name.function.abap" } }, "end": "\\s*\\.\\s*\\n?", "patterns": [{ "match": "(?ix)(?<=^|\\s)(BY\\s+DATABASE(\\s+PROCEDURE|\\s+FUNCTION|\\s+GRAPH\\s+WORKSPACE)|BY\\s+KERNEL\\s+MODULE)(?=\\s+|\\.)", "name": "storage.modifier.method.abap" }, { "match": "(?ix)(?<=^|\\s)(FOR\\s+(HDB|LLANG))(?=\\s+|\\.)", "name": "storage.modifier.method.abap" }, { "match": "(?ix)(?<=\\s)(OPTIONS\\s+(READ-ONLY|DETERMINISTIC|SUPPRESS\\s+SYNTAX\\s+ERRORS))(?=\\s+|\\.)", "name": "storage.modifier.method.abap" }, { "match": "(?ix)(?<=^|\\s)(LANGUAGE\\s+(SQLSCRIPT|SQL|GRAPH))(?=\\s+|\\.)", "name": "storage.modifier.method.abap" }, { "captures": { "1": { "name": "storage.modifier.method.abap" } }, "match": "(?ix)(?<=\\s)(USING)\\s+([a-z_\\/][a-z_0-9\\/=\\>]*)+(?=\\s+|\\.)" }, { "begin": "(?=[A-Za-z_][A-Za-z0-9_]*)", "end": "(?![A-Za-z0-9_])", "patterns": [{ "include": "#generic_names" }] }] }, { "begin": "(?ix)^\\s*(INTERFACE)\\s([a-z_\\/][a-z_0-9\\/]*)", "beginCaptures": { "1": { "name": "storage.type.block.abap" }, "2": { "name": "entity.name.type.abap" } }, "end": "\\s*\\.\\s*\\n?", "patterns": [{ "match": "(?ix)(?<=^|\\s)(DEFERRED|PUBLIC)(?=\\s+|\\.)", "name": "storage.modifier.method.abap" }] }, { "begin": "(?ix)^\\s*(FORM)\\s([a-z_\\/][a-z_0-9\\/\\-\\?]*)", "beginCaptures": { "1": { "name": "storage.type.block.abap" }, "2": { "name": "entity.name.type.abap" } }, "end": "\\s*\\.\\s*\\n?", "patterns": [{ "match": "(?ix)(?<=^|\\s)(USING|TABLES|CHANGING|RAISING
|
||
|
var abap = [
|
||
|
lang
|
||
|
];
|
||
|
|
||
|
export { abap as default };
|