7 lines
43 KiB
JavaScript
7 lines
43 KiB
JavaScript
|
const lang = Object.freeze({ "displayName": "Shell", "name": "shellscript", "patterns": [{ "include": "#initial_context" }], "repository": { "alias_statement": { "begin": "(?:(?:[ \\t]*+)(alias)(?:[ \\t]*+)((?:(?:((?<!\\w)-\\w+\\b)(?:[ \\t]*+))*))(?:(?:[ \\t]*+)(?:((?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))(?:(?:(\\[)((?:(?:(?:(?:\\$?)(?:(?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))|@)|\\*)|(-?\\d+)))(\\]))?))(?:(?:(\\=)|(\\+\\=))|(\\-\\=))))", "beginCaptures": { "1": { "name": "storage.type.alias.shell" }, "2": { "patterns": [{ "match": "(?<!\\w)-\\w+\\b", "name": "string.unquoted.argument.shell constant.other.option.shell" }] }, "3": { "name": "string.unquoted.argument.shell constant.other.option.shell" }, "4": { "name": "variable.other.assignment.shell" }, "5": { "name": "punctuation.definition.array.access.shell" }, "6": { "name": "variable.other.assignment.shell" }, "7": { "name": "constant.numeric.shell constant.numeric.integer.shell" }, "8": { "name": "punctuation.definition.array.access.shell" }, "9": { "name": "keyword.operator.assignment.shell" }, "10": { "name": "keyword.operator.assignment.compound.shell" }, "11": { "name": "keyword.operator.assignment.compound.shell" } }, "end": "(?:(?= |\\t|$)|(?:(?:(?:(;)|(&&))|(\\|\\|))|(&)))", "endCaptures": { "1": { "name": "punctuation.terminator.statement.semicolon.shell" }, "2": { "name": "punctuation.separator.statement.and.shell" }, "3": { "name": "punctuation.separator.statement.or.shell" }, "4": { "name": "punctuation.separator.statement.background.shell" } }, "name": "meta.expression.assignment.alias.shell", "patterns": [{ "include": "#normal_context" }] }, "argument": { "begin": "(?:[ \\t]++)(?!(?:&|\\||\\(|\\[|#|\\n|$|;))", "beginCaptures": {}, "end": "(?= |\\t|;|\\||&|$|\\n|\\)|\\`)", "endCaptures": {}, "name": "meta.argument.shell", "patterns": [{ "include": "#argument_context" }, { "include": "#line_continuation" }] }, "argument_context": { "patterns": [{ "captures": { "1": { "name": "string.unquoted.argument.shell", "patterns": [{ "match": "\\*", "name": "variable.language.special.wildcard.shell" }, { "include": "#variable" }, { "include": "#numeric_literal" }, { "captures": { "1": { "name": "constant.language.$1.shell" } }, "match": "(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)" }] } }, "match": "(?:[ \\t]*+)((?:[^ \\t\\n>&;<>\\(\\)\\$`\\\\\"'<\\|]+)(?!>))" }, { "include": "#normal_context" }] }, "arithmetic_double": { "patterns": [{ "begin": "\\(\\(", "beginCaptures": { "0": { "name": "punctuation.section.arithmetic.double.shell" } }, "end": "\\)(?:\\s*)\\)", "endCaptures": { "0": { "name": "punctuation.section.arithmetic.double.shell" } }, "name": "meta.arithmetic.shell", "patterns": [{ "include": "#math" }, { "include": "#string" }] }] }, "arithmetic_no_dollar": { "patterns": [{ "begin": "\\(", "beginCaptures": { "0": { "name": "punctuation.section.arithmetic.single.shell" } }, "end": "\\)", "endCaptures": { "0": { "name": "punctuation.section.arithmetic.single.shell" } }, "name": "meta.arithmetic.shell", "patterns": [{ "include": "#math" }, { "include": "#string" }] }] }, "array_access_inline": { "captures": { "1": { "name": "punctuation.section.array.shell" }, "2": { "patterns": [{ "include": "#special_expansion" }, { "include": "#string" }, { "include": "#variable" }] }, "3": { "name": "punctuation.section.array.shell" } }, "match": "(?:(\\[)([^\\[\\]]+)(\\]))" }, "array_value": { "begin": "(?:[ \\t]*+)(?:((?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))(?:(?:(\\[)((?:(?:(?:(?:\\$?)(?:(?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))|@)|\\*)|(-?\\d+)))(\\]))?))(?:(?:(\\=)|(\\+\\=))|(\\-\\=))(?:[ \\t]*+)(\\()", "beginCaptures": { "1": { "name": "variable.other.assignment.shell" }, "2": { "name": "punctuation.definition.array.access.shell" }, "3": { "name": "variable.other.assignment.shell" }, "4": { "name": "constant.numeric.shell constant.numeric.integer.shell" }, "5": { "name": "punctuation.definition.array.access.shell" }, "6": { "name": "keyword.operator.assignment.shell" }, "7": { "name": "keyword.operator.assignment.compound.shell" }, "8": { "name": "keyword.operator.assignment.compound.shell" },
|
||
|
var shellscript = [
|
||
|
lang
|
||
|
];
|
||
|
|
||
|
export { shellscript as default };
|