Update grammars (#211439)

This commit is contained in:
Alex Ross 2024-04-26 13:52:52 +02:00 committed by GitHub
parent edb368fc43
commit 5c213a1e84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 1346 additions and 780 deletions

View File

@ -6,7 +6,7 @@
"git": {
"name": "dart-lang/dart-syntax-highlight",
"repositoryUrl": "https://github.com/dart-lang/dart-syntax-highlight",
"commitHash": "272e2f89f85073c04b7e15b582257f76d2489970"
"commitHash": "bb8f7eebf5a1028e70dbebcf35cfef738dddc7fe"
}
},
"licenseDetail": [

View File

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/dart-lang/dart-syntax-highlight/commit/272e2f89f85073c04b7e15b582257f76d2489970",
"version": "https://github.com/dart-lang/dart-syntax-highlight/commit/bb8f7eebf5a1028e70dbebcf35cfef738dddc7fe",
"name": "Dart",
"scopeName": "source.dart",
"patterns": [
@ -14,7 +14,7 @@
},
{
"name": "meta.declaration.dart",
"begin": "^\\w*\\b(library|import|part of|part|export)\\b",
"begin": "^\\w*\\b(augment\\s+library|library|import\\s+augment|import|part\\s+of|part|export)\\b",
"beginCaptures": {
"0": {
"name": "keyword.other.import.dart"
@ -208,7 +208,7 @@
},
{
"name": "variable.language.dart",
"match": "(?<!\\$)\\b(this|super)\\b(?!\\$)"
"match": "(?<!\\$)\\b(this|super|augmented)\\b(?!\\$)"
},
{
"name": "constant.numeric.dart",
@ -328,11 +328,11 @@
},
{
"name": "keyword.declaration.dart",
"match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension type|extension|external|factory|implements|get(?![(<])|mixin|native|operator|set(?![(<])|typedef|with|covariant)\\b(?!\\$)"
"match": "(?<!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension\\s+type|extension|external|factory|implements|get(?![(<])|mixin|native|operator|set(?![(<])|typedef|with|covariant)\\b(?!\\$)"
},
{
"name": "storage.modifier.dart",
"match": "(?<!\\$)\\b(static|final|const|required|late)\\b(?!\\$)"
"match": "(?<!\\$)\\b(macro|augment|static|final|const|required|late)\\b(?!\\$)"
},
{
"name": "storage.type.primitive.dart",
@ -388,10 +388,33 @@
}
]
},
"expression": {
"patterns": [
{
"include": "#constants-and-special-vars"
},
{
"include": "#strings"
},
{
"name": "variable.parameter.dart",
"match": "[a-zA-Z0-9_]+"
},
{
"begin": "\\{",
"end": "\\}",
"patterns": [
{
"include": "#expression"
}
]
}
]
},
"string-interp": {
"patterns": [
{
"name": "string.interpolated.expression.dart",
"name": "meta.embedded.expression.dart",
"match": "\\$([a-zA-Z0-9_]+)",
"captures": {
"1": {
@ -400,19 +423,12 @@
}
},
{
"name": "string.interpolated.expression.dart",
"name": "meta.embedded.expression.dart",
"begin": "\\$\\{",
"end": "\\}",
"patterns": [
{
"include": "#constants-and-special-vars"
},
{
"include": "#strings"
},
{
"name": "variable.parameter.dart",
"match": "[a-zA-Z0-9_]+"
"include": "#expression"
}
]
},

View File

@ -6,12 +6,12 @@
"git": {
"name": "go-syntax",
"repositoryUrl": "https://github.com/worlpaker/go-syntax",
"commitHash": "6b7e1ad89c031a35a2bf8359538204bcef82f5be"
"commitHash": "254bd0f25182c86ffd2043824f8d003e11a34268"
}
},
"license": "MIT",
"description": "The file syntaxes/go.tmLanguage.json is from https://github.com/worlpaker/go-syntax, which in turn was derived from https://github.com/jeff-hykin/better-go-syntax.",
"version": "0.6.5"
"version": "0.6.6"
}
],
"version": 1

View File

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/worlpaker/go-syntax/commit/6b7e1ad89c031a35a2bf8359538204bcef82f5be",
"version": "https://github.com/worlpaker/go-syntax/commit/254bd0f25182c86ffd2043824f8d003e11a34268",
"name": "Go",
"scopeName": "source.go",
"patterns": [
@ -265,8 +265,18 @@
},
"language_constants": {
"comment": "Language constants",
"match": "\\b(true|false|nil|iota)\\b",
"name": "constant.language.go"
"match": "\\b(?:(true|false)|(nil)|(iota))\\b",
"captures": {
"1": {
"name": "constant.language.boolean.go"
},
"2": {
"name": "constant.language.null.go"
},
"3": {
"name": "constant.language.iota.go"
}
}
},
"comments": {
"patterns": [

View File

@ -6,7 +6,7 @@
"git": {
"name": "JuliaEditorSupport/atom-language-julia",
"repositoryUrl": "https://github.com/JuliaEditorSupport/atom-language-julia",
"commitHash": "c56f92f8120ae9046a064de6351b50b3b5c624a1"
"commitHash": "663bf8d943fd8440f4ae7565f73327dd616bf191"
}
},
"license": "MIT",

View File

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/JuliaEditorSupport/atom-language-julia/commit/c56f92f8120ae9046a064de6351b50b3b5c624a1",
"version": "https://github.com/JuliaEditorSupport/atom-language-julia/commit/663bf8d943fd8440f4ae7565f73327dd616bf191",
"name": "Julia",
"scopeName": "source.julia",
"comment": "This grammar is used by Atom (Oniguruma), GitHub (PCRE), and VSCode (Oniguruma),\nso all regexps must be compatible with both engines.\n\nSpecs:\n- https://github.com/kkos/oniguruma/blob/master/doc/RE\n- https://www.pcre.org/current/doc/html/",
@ -321,7 +321,7 @@
"name": "keyword.control.export.julia"
},
{
"match": "\\b(?<![:_])(?:public)\\b",
"match": "^(?:public)\\b",
"name": "keyword.control.public.julia"
},
{

View File

@ -6,7 +6,7 @@
"git": {
"name": "jlelong/vscode-latex-basics",
"repositoryUrl": "https://github.com/jlelong/vscode-latex-basics",
"commitHash": "4f8b49bca02b0bfde6e46252c209396ba6c567f9"
"commitHash": "56e2dc967e6bafafc1acfeeb80af42b8328b021a"
}
},
"license": "MIT",

View File

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/jlelong/vscode-latex-basics/commit/4f8b49bca02b0bfde6e46252c209396ba6c567f9",
"version": "https://github.com/jlelong/vscode-latex-basics/commit/3d141a124a16558958e95c54267f7ca37986de6f",
"name": "LaTeX",
"scopeName": "text.tex.latex",
"patterns": [
@ -2903,6 +2903,32 @@
"match": "((\\\\)(?:jl|julia)[cv]?)((?:\\[[^\\[]*?\\])?)(?:(?:([^a-zA-Z\\{])(.*?)(\\4))|(?:(\\{)(.*?)(\\})))",
"name": "meta.function.verb.latex"
},
{
"begin": "((\\\\)(?:directlua|luadirect))(\\{)",
"beginCaptures": {
"1": {
"name": "support.function.verb.latex"
},
"2": {
"name": "punctuation.definition.function.latex"
},
"3": {
"name": "punctuation.definition.arguments.begin.latex"
}
},
"end": "\\}",
"endCaptures": {
"0": {
"name": "punctuation.definition.arguments.end.latex"
}
},
"contentName": "source.lua",
"patterns": [
{
"include": "source.lua"
}
]
},
{
"match": "\\\\(?:newline|pagebreak|clearpage|linebreak|pause)(?:\\b)",
"name": "keyword.control.layout.latex"
@ -3016,6 +3042,15 @@
"match": "(\\\\)(text(s(terling|ixoldstyle|urd|e(ction|venoldstyle|rvicemark))|yen|n(ineoldstyle|umero|aira)|c(ircledP|o(py(left|right)|lonmonetary)|urrency|e(nt(oldstyle)?|lsius))|t(hree(superior|oldstyle|quarters(emdash)?)|i(ldelow|mes)|w(o(superior|oldstyle)|elveudash)|rademark)|interrobang(down)?|zerooldstyle|o(hm|ne(superior|half|oldstyle|quarter)|penbullet|rd(feminine|masculine))|d(i(scount|ed|v(orced)?)|o(ng|wnarrow|llar(oldstyle)?)|egree|agger(dbl)?|blhyphen(char)?)|uparrow|p(ilcrow|e(so|r(t(housand|enthousand)|iodcentered))|aragraph|m)|e(stimated|ightoldstyle|uro)|quotes(traight(dblbase|base)|ingle)|f(iveoldstyle|ouroldstyle|lorin|ractionsolidus)|won|l(not|ira|e(ftarrow|af)|quill|angle|brackdbl)|a(s(cii(caron|dieresis|acute|grave|macron|breve)|teriskcentered)|cutedbl)|r(ightarrow|e(cipe|ferencemark|gistered)|quill|angle|brackdbl)|g(uarani|ravedbl)|m(ho|inus|u(sicalnote)?|arried)|b(igcircle|orn|ullet|lank|a(ht|rdbl)|rokenbar)))\\b",
"name": "constant.character.latex"
},
{
"captures": {
"1": {
"name": "punctuation.definition.variable.latex"
}
},
"match": "(\\\\)[cgl](?:[_\\p{Alphabetic}@]+)+_(?:bitset|clist|dim|fp|int|muskip|str|tl|bool|box|coffin|flag|fparray|intarray|ior|iow|prop|regex|seq)",
"name": "variable.other.latex3.latex"
},
{
"captures": {
"1": {

View File

@ -4,27 +4,27 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/jlelong/vscode-latex-basics/commit/4f8b49bca02b0bfde6e46252c209396ba6c567f9",
"version": "https://github.com/jlelong/vscode-latex-basics/commit/8624d0bdae950a70cdf4a1c3d19c7398ef851721",
"name": "TeX",
"scopeName": "text.tex",
"patterns": [
{
"begin": "(\\\\)iffalse",
"begin": "(?<=^\\s*)((\\\\)iffalse)",
"beginCaptures": {
"0": {
"1": {
"name": "keyword.control.tex"
},
"1": {
"2": {
"name": "punctuation.definition.keyword.tex"
}
},
"contentName": "comment.line.percentage.tex",
"end": "(\\\\)(else|fi)",
"end": "(?<=^\\s*)((\\\\)(?:else|fi))",
"endCaptures": {
"0": {
"1": {
"name": "keyword.control.tex"
},
"1": {
"2": {
"name": "punctuation.definition.keyword.tex"
}
},
@ -108,7 +108,7 @@
"name": "punctuation.definition.function.tex"
}
},
"match": "(\\\\)(?:[\\p{Alphabetic}@]+|[,;])",
"match": "(\\\\)(?:[,;]|(?:[\\p{Alphabetic}@]+(?:(?:_[\\p{Alphabetic}@]+)*:[NncVvoxefTFpwD]*)?))",
"name": "support.function.general.tex"
},
{
@ -174,8 +174,8 @@
]
},
"conditionals": {
"begin": "\\\\(if[a-z]*)",
"end": "\\\\fi",
"begin": "(?<=^\\s*)\\\\if[a-z]*",
"end": "(?<=^\\s*)\\\\fi",
"patterns": [
{
"include": "#comment"

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
"git": {
"name": "language-less",
"repositoryUrl": "https://github.com/radium-v/Better-Less",
"commitHash": "05de79f600227201e35f07a49f07acce80e49dbf"
"commitHash": "24047277622c245dbe9309f0004d0ccb8f02636f"
}
},
"license": "MIT",

View File

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/radium-v/Better-Less/commit/05de79f600227201e35f07a49f07acce80e49dbf",
"version": "https://github.com/radium-v/Better-Less/commit/24047277622c245dbe9309f0004d0ccb8f02636f",
"name": "Less",
"scopeName": "source.css.less",
"patterns": [
@ -3966,7 +3966,7 @@
]
},
{
"begin": "\\bfilter\\b",
"begin": "\\b(?:backdrop-)?filter\\b",
"beginCaptures": {
"0": {
"name": "support.type.property-name.less"

View File

@ -6,7 +6,7 @@
"git": {
"name": "sumneko/lua.tmbundle",
"repositoryUrl": "https://github.com/sumneko/lua.tmbundle",
"commitHash": "94ce82cc4d45f82641a5252d7a7fd9e28c875adc"
"commitHash": "1483add845ebfb3e1e631fe372603e5fed2cdd42"
}
},
"licenseDetail": [

View File

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/sumneko/lua.tmbundle/commit/94ce82cc4d45f82641a5252d7a7fd9e28c875adc",
"version": "https://github.com/sumneko/lua.tmbundle/commit/1483add845ebfb3e1e631fe372603e5fed2cdd42",
"name": "Lua",
"scopeName": "source.lua",
"patterns": [
@ -141,8 +141,8 @@
{
"match": "<\\s*(const|close)\\s*>",
"captures": {
"1": {
"name": "string.tag.lua"
"0": {
"name": "storage.type.attribute.lua"
}
}
},
@ -155,7 +155,7 @@
"name": "keyword.control.lua"
},
{
"match": "\\b(local|global)\\b",
"match": "\\b(local)\\b",
"name": "keyword.local.lua"
},
{
@ -363,7 +363,7 @@
"name": "punctuation.definition.comment.begin.lua"
}
},
"end": "\\]\\1\\]",
"end": "(--)?\\]\\1\\]",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.lua"
@ -383,7 +383,7 @@
"name": "punctuation.definition.comment.begin.lua"
}
},
"end": "\\]\\1\\]",
"end": "(--)?\\]\\1\\]",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.lua"
@ -472,7 +472,7 @@
"emmydoc": {
"patterns": [
{
"begin": "(?<=---[ \\t]*)@class",
"begin": "(?<=---)[ \\t]*@class",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -491,7 +491,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@enum",
"begin": "(?<=---)[ \\t]*@enum",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -511,7 +511,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@type",
"begin": "(?<=---)[ \\t]*@type",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -525,7 +525,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@alias",
"begin": "(?<=---)[ \\t]*@alias",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -550,7 +550,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)(@operator)\\s*(\\b[a-z]+)?",
"begin": "(?<=---)[ \\t]*(@operator)\\s*(\\b[a-z]+)?",
"beginCaptures": {
"1": {
"name": "storage.type.annotation.lua"
@ -567,7 +567,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@cast",
"begin": "(?<=---)[ \\t]*@cast",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -596,7 +596,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@param",
"begin": "(?<=---)[ \\t]*@param",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -624,7 +624,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@return",
"begin": "(?<=---)[ \\t]*@return",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -642,7 +642,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@field",
"begin": "(?<=---)[ \\t]*@field",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -677,7 +677,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@generic",
"begin": "(?<=---)[ \\t]*@generic",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -711,7 +711,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@vararg",
"begin": "(?<=---)[ \\t]*@vararg",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -725,7 +725,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@overload",
"begin": "(?<=---)[ \\t]*@overload",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -739,7 +739,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@deprecated",
"begin": "(?<=---)[ \\t]*@deprecated",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -748,7 +748,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@meta",
"begin": "(?<=---)[ \\t]*@meta",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -757,7 +757,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@private",
"begin": "(?<=---)[ \\t]*@private",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -766,7 +766,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@protected",
"begin": "(?<=---)[ \\t]*@protected",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -775,7 +775,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@package",
"begin": "(?<=---)[ \\t]*@package",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -784,7 +784,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@version",
"begin": "(?<=---)[ \\t]*@version",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -803,7 +803,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@see",
"begin": "(?<=---)[ \\t]*@see",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -822,7 +822,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@diagnostic",
"begin": "(?<=---)[ \\t]*@diagnostic",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -855,7 +855,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@module",
"begin": "(?<=---)[ \\t]*@module",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@ -869,7 +869,7 @@
]
},
{
"match": "(?<=---[ \\t]*)@(async|nodiscard)",
"match": "(?<=---)[ \\t]*@(async|nodiscard)",
"name": "storage.type.annotation.lua"
},
{

View File

@ -6,7 +6,7 @@
"git": {
"name": "dotnet/razor",
"repositoryUrl": "https://github.com/dotnet/razor",
"commitHash": "f01e110af179981942987384d2b5d4e489eab014"
"commitHash": "39159764277f3c80a786d8872eba7730da3d7ef0"
}
},
"license": "MIT",

View File

@ -4,9 +4,31 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/dotnet/razor/commit/f01e110af179981942987384d2b5d4e489eab014",
"version": "https://github.com/dotnet/razor/commit/39159764277f3c80a786d8872eba7730da3d7ef0",
"name": "ASP.NET Razor",
"scopeName": "text.html.cshtml",
"injections": {
"string.quoted.double.html": {
"patterns": [
{
"include": "#explicit-razor-expression"
},
{
"include": "#implicit-expression"
}
]
},
"string.quoted.single.html": {
"patterns": [
{
"include": "#explicit-razor-expression"
},
{
"include": "#implicit-expression"
}
]
}
},
"patterns": [
{
"include": "#razor-control-structures"

View File

@ -6,11 +6,11 @@
"git": {
"name": "jeff-hykin/better-shell-syntax",
"repositoryUrl": "https://github.com/jeff-hykin/better-shell-syntax",
"commitHash": "21748db7c7fd6ccd660c5bc770212836e58385ae"
"commitHash": "6d0bc37a6b8023a5fddf75bd2b4eb1e1f962e4c2"
}
},
"license": "MIT",
"version": "1.8.3"
"version": "1.8.7"
}
],
"version": 1

View File

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/jeff-hykin/better-shell-syntax/commit/21748db7c7fd6ccd660c5bc770212836e58385ae",
"version": "https://github.com/jeff-hykin/better-shell-syntax/commit/6d0bc37a6b8023a5fddf75bd2b4eb1e1f962e4c2",
"name": "Shell Script",
"scopeName": "source.shell",
"patterns": [
@ -14,7 +14,7 @@
],
"repository": {
"alias_statement": {
"begin": "(?:(alias)(?:[ \\t]*+)((?:(?:((?<!\\w)-\\w+\\b)(?:[ \\t]*+))*))(?:(?:[ \\t]*+)(?:((?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))(?:(?:(\\[)((?:(?:(?:(?:\\$?)(?:(?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))|@)|\\*)|(-?\\d+)))(\\]))?))(?:(?:(\\=)|(\\+\\=))|(\\-\\=))))",
"begin": "(?:(?:[ \\t]*+)(alias)(?:[ \\t]*+)((?:(?:((?<!\\w)-\\w+\\b)(?:[ \\t]*+))*))(?:(?:[ \\t]*+)(?:((?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))(?:(?:(\\[)((?:(?:(?:(?:\\$?)(?:(?<!\\w)(?:[a-zA-Z_0-9-]+)(?!\\w))|@)|\\*)|(-?\\d+)))(\\]))?))(?:(?:(\\=)|(\\+\\=))|(\\-\\=))))",
"end": "(?:(?= |\\t|$)|(?:(?:(?:(;)|(&&))|(\\|\\|))|(&)))",
"beginCaptures": {
"1": {
@ -95,7 +95,7 @@
"argument_context": {
"patterns": [
{
"match": "(?:[ \\t]*+)((?:[^ \t\n'&;<>\\(\\)\\$`\\\\\"\\|]+)(?!>))",
"match": "(?:[ \\t]*+)((?:[^ \t\n>&;<>\\(\\)\\$`\\\\\"'<\\|]+)(?!>))",
"captures": {
"1": {
"name": "string.unquoted.argument.shell",
@ -296,7 +296,7 @@
]
},
"basic_command_name": {
"match": "(?:(?:(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!nocorrect |nocorrect\t|nocorrect$|readonly |readonly\t|readonly$|function |function\t|function$|foreach |foreach\t|foreach$|coproc |coproc\t|coproc$|logout |logout\t|logout$|export |export\t|export$|select |select\t|select$|repeat |repeat\t|repeat$|pushd |pushd\t|pushd$|until |until\t|until$|while |while\t|while$|local |local\t|local$|case |case\t|case$|done |done\t|done$|elif |elif\t|elif$|else |else\t|else$|esac |esac\t|esac$|popd |popd\t|popd$|then |then\t|then$|time |time\t|time$|for |for\t|for$|end |end\t|end$|fi |fi\t|fi$|do |do\t|do$|in |in\t|in$|if |if\t|if$))(?:((?<=^|;|&|[ \\t])(?:readonly|declare|typeset|export|local)(?=[ \\t]|;|&|$))|((?!\"|'|\\\\\\n?$)(?:[^!'\" \\t\\n\\r]+?)))(?:(?= |\\t)|(?:(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))))",
"match": "(?:(?:(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!nocorrect |nocorrect\t|nocorrect$|readonly |readonly\t|readonly$|function |function\t|function$|foreach |foreach\t|foreach$|coproc |coproc\t|coproc$|logout |logout\t|logout$|export |export\t|export$|select |select\t|select$|repeat |repeat\t|repeat$|pushd |pushd\t|pushd$|until |until\t|until$|while |while\t|while$|local |local\t|local$|case |case\t|case$|done |done\t|done$|elif |elif\t|elif$|else |else\t|else$|esac |esac\t|esac$|popd |popd\t|popd$|then |then\t|then$|time |time\t|time$|for |for\t|for$|end |end\t|end$|fi |fi\t|fi$|do |do\t|do$|in |in\t|in$|if |if\t|if$))(?:((?<=^|;|&|[ \\t])(?:readonly|declare|typeset|export|local)(?=[ \\t]|;|&|$))|((?!\"|'|\\\\\\n?$)(?:[^!'\"<> \\t\\n\\r]+?)))(?:(?= |\\t)|(?:(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))))",
"captures": {
"1": {
"name": "storage.modifier.$1.shell"
@ -435,10 +435,18 @@
"name": "keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"
},
{
"begin": "\\(",
"match": "\\\\.",
"name": "constant.character.escape.shell"
},
{
"match": "(?<=\\tin| in| |\\t|;;)\\(",
"name": "keyword.operator.pattern.case.shell"
},
{
"begin": "(?<=\\S)(\\()",
"end": "\\)",
"beginCaptures": {
"0": {
"1": {
"name": "punctuation.definition.group.shell punctuation.definition.regex.group.shell"
}
},
@ -486,7 +494,7 @@
},
"command_name_range": {
"begin": "\\G",
"end": "(?= |\\t|;|\\||&|$|\\n|\\)|\\`)",
"end": "(?:(?= |\\t|;|\\||&|$|\\n|\\)|\\`)|(?=<))",
"beginCaptures": {},
"endCaptures": {},
"name": "meta.statement.command.name.shell",
@ -503,7 +511,7 @@
"include": "#variable"
},
{
"match": "(?:(?<!\\w)(?<=\\G|'|\"|\\}|\\))([^ \\n\\t\\r\"'=;&\\|`\\)\\{]+))",
"match": "(?:(?<!\\w)(?<=\\G|'|\"|\\}|\\))([^ \\n\\t\\r\"'=;&\\|`\\)\\{<>]+))",
"captures": {
"1": {
"name": "entity.name.function.call.shell entity.name.command.shell"
@ -564,6 +572,9 @@
},
{
"include": "#string"
},
{
"include": "#heredoc"
}
]
},
@ -867,7 +878,7 @@
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.heredoc.delimiter.shell"
"name": "punctuation.definition.string.heredoc.$0.shell"
}
},
"contentName": "string.quoted.heredoc.indent.$3",
@ -1500,6 +1511,30 @@
}
]
},
"math_operators": {
"patterns": [
{
"match": "\\+{1,2}|-{1,2}|!|~|\\*{1,2}|/|%|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|\\?|\\:|,|=|[*/%+\\-&^|]=|<<=|>>=",
"name": "keyword.operator.arithmetic.shell"
},
{
"match": "0[xX][0-9A-Fa-f]+",
"name": "constant.numeric.hex.shell"
},
{
"match": "0\\d+",
"name": "constant.numeric.octal.shell"
},
{
"match": "\\d{1,2}#[0-9a-zA-Z@_]+",
"name": "constant.numeric.other.shell"
},
{
"match": "\\d+",
"name": "constant.numeric.integer.shell"
}
]
},
"misc_ranges": {
"patterns": [
{
@ -1912,7 +1947,7 @@
]
},
"redirect_fix": {
"match": "(?:(>>?)(?:[ \\t]*+)([^ \t\n'&;<>\\(\\)\\$`\\\\\"\\|]+))",
"match": "(?:(>>?)(?:[ \\t]*+)([^ \t\n>&;<>\\(\\)\\$`\\\\\"'<\\|]+))",
"captures": {
"1": {
"name": "keyword.operator.redirect.shell"
@ -1996,7 +2031,7 @@
}
},
"simple_unquoted": {
"match": "[^ \\t\\n'&;<>\\(\\)\\$`\\\\\"\\|]",
"match": "[^ \\t\\n>&;<>\\(\\)\\$`\\\\\"'<\\|]",
"name": "string.unquoted.shell"
},
"special_expansion": {
@ -2135,6 +2170,9 @@
{
"include": "#for_statement"
},
{
"include": "#while_statement"
},
{
"include": "#function_definition"
},
@ -2275,6 +2313,41 @@
}
}
]
},
"while_statement": {
"patterns": [
{
"begin": "(\\bwhile\\b)",
"end": "(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)",
"beginCaptures": {
"1": {
"name": "keyword.control.while.shell"
}
},
"endCaptures": {},
"name": "meta.while.shell",
"patterns": [
{
"include": "#line_continuation"
},
{
"include": "#math_operators"
},
{
"include": "#option"
},
{
"include": "#simple_unquoted"
},
{
"include": "#normal_context"
},
{
"include": "#string"
}
]
}
]
}
}
}

View File

@ -1065,7 +1065,7 @@
},
{
"c": "nil",
"t": "source.go constant.language.go",
"t": "source.go constant.language.null.go",
"r": {
"dark_plus": "constant.language: #569CD6",
"light_plus": "constant.language: #0000FF",