Update grammars

This commit is contained in:
Alex Ross 2021-12-07 15:09:32 +01:00
parent a2da2566b5
commit 95dcb89a92
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840
13 changed files with 92 additions and 238 deletions

View file

@ -6,7 +6,7 @@
"git": {
"name": "jeff-hykin/cpp-textmate-grammar",
"repositoryUrl": "https://github.com/jeff-hykin/cpp-textmate-grammar",
"commitHash": "db3f4e4a5d8335b2f6d689bec490c23f8313630f"
"commitHash": "0ef79f098ed80ce5a86be4ed40f99ebcdbac4895"
}
},
"license": "MIT",

View file

@ -6,7 +6,7 @@
"git": {
"name": "dart-lang/dart-syntax-highlight",
"repositoryUrl": "https://github.com/dart-lang/dart-syntax-highlight",
"commitHash": "1fa12423de71bcc75f68371ca4debaebdd989c20"
"commitHash": "a93646fe6e552d1984c24fd31b1c07dcb3ce7c21"
}
},
"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/1fa12423de71bcc75f68371ca4debaebdd989c20",
"version": "https://github.com/dart-lang/dart-syntax-highlight/commit/a93646fe6e552d1984c24fd31b1c07dcb3ce7c21",
"name": "Dart",
"scopeName": "source.dart",
"patterns": [
@ -230,7 +230,7 @@
"class-identifier": {
"patterns": [
{
"match": "(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*(<(?:[a-zA-Z0-9_$<>]|, )+>)?|bool\\b|num\\b|int\\b|double\\b|dynamic\\b|(void)\\b)",
"match": "(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*(<(?:[a-zA-Z0-9_$<>?]|,\\s*|\\s+extends\\s+)+>)?|bool\\b|num\\b|int\\b|double\\b|dynamic\\b|(void)\\b)",
"captures": {
"1": {
"name": "support.class.dart"
@ -252,7 +252,7 @@
"function-identifier": {
"patterns": [
{
"match": "([_$]*[a-z][a-zA-Z0-9_$]*)(<(?:[a-zA-Z0-9_$<>]|, )+>)?(\\(|\\s+=>)",
"match": "([_$]*[a-z][a-zA-Z0-9_$]*)(<(?:[a-zA-Z0-9_$<>?]|,\\s*|\\s+extends\\s+)+>)?(\\(|\\s+=>)",
"captures": {
"1": {
"name": "entity.name.function.dart"
@ -286,7 +286,11 @@
"include": "#class-identifier"
},
{
"match": "\\s*,\\s*"
"match": "[\\s,]+"
},
{
"name": "keyword.declaration.dart",
"match": "extends"
}
]
},

View file

@ -29,4 +29,4 @@
}
],
"version": 1
}
}

View file

@ -6,7 +6,7 @@
"git": {
"name": "ionide/ionide-fsgrammar",
"repositoryUrl": "https://github.com/ionide/ionide-fsgrammar",
"commitHash": "fc4cac6d9bc1787f54ce48bbc77bcbb1de8160ff"
"commitHash": "bba27391e61090035449b5c1e5c4b9d396bc4c9b"
}
},
"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/ionide/ionide-fsgrammar/commit/fc4cac6d9bc1787f54ce48bbc77bcbb1de8160ff",
"version": "https://github.com/ionide/ionide-fsgrammar/commit/bba27391e61090035449b5c1e5c4b9d396bc4c9b",
"name": "fsharp",
"scopeName": "source.fsharp",
"patterns": [
@ -527,8 +527,8 @@
"patterns": [
{
"name": "comment.block.markdown.fsharp",
"begin": "^\\s*(\\(\\*\\*(?!\\)))(?!\\*\\))$",
"while": "^(?!\\s*\\*\\)$)",
"begin": "^\\s*(\\(\\*\\*(?!\\)))((?!\\*\\)).)*$",
"while": "^(?!\\s*(\\*)+\\)$)",
"beginCaptures": {
"1": {
"name": "comment.block.fsharp"
@ -572,7 +572,7 @@
},
{
"name": "comment.block.markdown.fsharp.end",
"match": "(\\*\\))",
"match": "((?<!\\()(\\*)+\\))",
"captures": {
"1": {
"name": "comment.block.fsharp"
@ -609,9 +609,13 @@
"name": "constant.numeric.integer.nativeint.fsharp",
"match": "\\b(-?((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(0(o|O)[0-7][0-7_]*)|(0(b|B)[01][01_]*)|([0-9][0-9_]*)))"
},
{
"name": "constant.language.boolean.fsharp",
"match": "\\b(true|false)\\b"
},
{
"name": "constant.other.fsharp",
"match": "\\b(true|false|null|unit|void)\\b"
"match": "\\b(null|unit|void)\\b"
}
]
},

View file

@ -36,4 +36,4 @@
}
],
"version": 1
}
}

View file

@ -6,11 +6,11 @@
"git": {
"name": "JuliaEditorSupport/atom-language-julia",
"repositoryUrl": "https://github.com/JuliaEditorSupport/atom-language-julia",
"commitHash": "6c80921298caa9e6c382f1fecec0bf3a83c3d9ec"
"commitHash": "cbf818c487848f8ab1293e0ff6650aaa3bf02f98"
}
},
"license": "MIT",
"version": "0.21.1"
"version": "0.21.2"
}
],
"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/JuliaEditorSupport/atom-language-julia/commit/6c80921298caa9e6c382f1fecec0bf3a83c3d9ec",
"version": "https://github.com/JuliaEditorSupport/atom-language-julia/commit/cbf818c487848f8ab1293e0ff6650aaa3bf02f98",
"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/",
@ -18,6 +18,9 @@
{
"include": "#string"
},
{
"include": "#parentheses"
},
{
"include": "#bracket"
},
@ -83,6 +86,29 @@
}
]
},
"parentheses": {
"patterns": [
{
"begin": "\\(",
"beginCaptures": {
"0": {
"name": "meta.bracket.julia"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "meta.bracket.julia"
}
},
"patterns": [
{
"include": "$self"
}
]
}
]
},
"bracket": {
"patterns": [
{
@ -135,13 +161,16 @@
"function_call": {
"patterns": [
{
"begin": "((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?\\.?(?=\\()",
"begin": "((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?\\.?(\\()",
"beginCaptures": {
"1": {
"name": "support.function.julia"
},
"2": {
"name": "support.type.julia"
},
"3": {
"name": "meta.bracket.julia"
}
},
"end": "\\)(('|(\\.'))*\\.?')?",
@ -257,8 +286,15 @@
"number": {
"patterns": [
{
"match": "(?<!(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿]))((\\b0(x|X)[0-9a-fA-F](_?[0-9a-fA-F])*)|(\\b0o[0-7](_?[0-7])*)|(\\b0b[0-1](_?[0-1])*)|((\\b[0-9](_?[0-9])*\\.?(?!\\.)([_0-9]*))|(\\.[0-9](_?[0-9])*))([efE][+-]?[0-9](_?[0-9])*)?(im\\b)?|\\bInf(16|32|64)?\\b|\\bNaN(16|32|64)?\\b|\\bπ\\b|\\bpi\\b|\\b\\b)",
"name": "constant.numeric.julia"
"match": "((?<!(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[-‷⁗]|[^\\P{So}←-⇿]))(?:(?:\\b0(?:x|X)[0-9a-fA-F](?:_?[0-9a-fA-F])*)|(?:\\b0o[0-7](?:_?[0-7])*)|(?:\\b0b[0-1](?:_?[0-1])*)|(?:(?:\\b[0-9](?:_?[0-9])*\\.?(?!\\.)(?:[_0-9]*))|(?:\\.[0-9](?:_?[0-9])*))(?:[efE][+-]?[0-9](?:_?[0-9])*)?(?:im\\b|Inf(?:16|32|64)?\\b|NaN(?:16|32|64)?\\b|π\\b|pi\\b|\\b)?|\\bInf(?:16|32|64)?\\b|\\bNaN(?:16|32|64)?\\b|\\bπ\\b|\\bpi\\b|\\b\\b))('*)",
"captures": {
"1": {
"name": "constant.numeric.julia"
},
"2": {
"name": "keyword.operator.conjugate-number.julia"
}
}
},
{
"match": "\\bARGS\\b|\\bC_NULL\\b|\\bDEPOT_PATH\\b|\\bENDIAN_BOM\\b|\\bENV\\b|\\bLOAD_PATH\\b|\\bPROGRAM_FILE\\b|\\bstdin\\b|\\bstdout\\b|\\bstderr\\b|\\bVERSION\\b|\\bdevnull\\b",
@ -437,33 +473,6 @@
}
]
},
{
"begin": "((i?cxxt?)|([rpv]cpp))(\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"4": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"",
"name": "embed.cxx.julia",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"contentName": "meta.embedded.inline.cpp",
"patterns": [
{
"include": "source.cpp#root_context"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(py)(\"\"\")",
"beginCaptures": {
@ -491,33 +500,6 @@
}
]
},
{
"begin": "(py)(\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "(\\w*)(\")",
"name": "embed.python.julia",
"endCaptures": {
"2": {
"name": "punctuation.definition.string.end.julia"
}
},
"contentName": "meta.embedded.inline.python",
"patterns": [
{
"include": "source.python"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(js)(\"\"\")",
"beginCaptures": {
@ -545,33 +527,6 @@
}
]
},
{
"begin": "(js)(\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"",
"name": "embed.js.julia",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"contentName": "meta.embedded.inline.javascript",
"patterns": [
{
"include": "source.js"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(R)(\"\"\")",
"beginCaptures": {
@ -599,33 +554,6 @@
}
]
},
{
"begin": "(R)(\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"",
"name": "embed.R.julia",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"contentName": "meta.embedded.inline.r",
"patterns": [
{
"include": "source.r"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(raw)(\"\"\")",
"beginCaptures": {
@ -689,33 +617,6 @@
}
]
},
{
"begin": "(sql)(\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"name": "embed.sql.julia",
"contentName": "meta.embedded.inline.sql",
"patterns": [
{
"include": "source.sql"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "var\"\"\"",
"end": "\"\"\"",
@ -726,66 +627,6 @@
"end": "\"",
"name": "constant.other.symbol.julia"
},
{
"begin": "(md)(\"\"\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"\"\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"name": "embed.markdown.julia",
"contentName": "meta.embedded.inline.markdown",
"patterns": [
{
"include": "text.md"
},
{
"include": "text.html.markdown.julia"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "(md)(\")",
"beginCaptures": {
"1": {
"name": "support.function.macro.julia"
},
"2": {
"name": "punctuation.definition.string.begin.julia"
}
},
"end": "\"",
"name": "embed.markdown.julia",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.julia"
}
},
"contentName": "meta.embedded.inline.markdown",
"patterns": [
{
"include": "text.md"
},
{
"include": "text.html.markdown.julia"
},
{
"include": "#string_dollar_sign_interpolate"
}
]
},
{
"begin": "^\\s?(doc)?(\"\"\")\\s?$",
"beginCaptures": {
@ -1056,7 +897,7 @@
"comment": "`punctuation.section.embedded`, `constant.escape`,\n& `meta.embedded.line` were considered but appear to have even spottier\nsupport among popular syntaxes.",
"patterns": [
{
"include": "#nest_parens_and_self"
"include": "#parentheses"
},
{
"include": "$self"
@ -1065,22 +906,6 @@
}
]
},
"nest_parens_and_self": {
"patterns": [
{
"begin": "\\(",
"end": "\\)",
"patterns": [
{
"include": "#nest_parens_and_self"
}
]
},
{
"include": "$self"
}
]
},
"symbol": {
"patterns": [
{

View file

@ -6,11 +6,11 @@
"git": {
"name": "language-php",
"repositoryUrl": "https://github.com/atom/language-php",
"commitHash": "e3054bdf1f488ae0dcac51a3bc254268e3f26f84"
"commitHash": "2bf736a814e1a58aa63470c1a29590bd02e924e7"
}
},
"license": "MIT",
"version": "0.47.0"
"version": "0.46.2"
}
],
"version": 1

View file

@ -6,7 +6,7 @@
"git": {
"name": "Ikuyadeu/vscode-R",
"repositoryUrl": "https://github.com/Ikuyadeu/vscode-R",
"commitHash": "c9290464add8409f35fcbe47339d4b2ca0e4416c"
"commitHash": "f99fdd79533b62b0b6eb6142190963349aa621d7"
}
},
"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/Ikuyadeu/vscode-R/commit/c9290464add8409f35fcbe47339d4b2ca0e4416c",
"version": "https://github.com/Ikuyadeu/vscode-R/commit/f99fdd79533b62b0b6eb6142190963349aa621d7",
"name": "R",
"scopeName": "source.r",
"patterns": [
@ -245,6 +245,27 @@
"name": "constant.character.escape.r"
}
]
},
{
"begin": "`",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.r"
}
},
"end": "`",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.r"
}
},
"name": "variable.parameter.r",
"patterns": [
{
"match": "\\\\.",
"name": "variable.parameter.r"
}
]
}
]
},

View file

@ -6,12 +6,12 @@
"git": {
"name": "atom/language-sass",
"repositoryUrl": "https://github.com/atom/language-sass",
"commitHash": "f52ab12f7f9346cc2568129d8c4419bd3d506b47"
"commitHash": "303bbf0c250fe380b9e57375598cfd916110758b"
}
},
"license": "MIT",
"description": "The file syntaxes/scss.json was derived from the Atom package https://github.com/atom/language-sass which was originally converted from the TextMate bundle https://github.com/alexsancho/SASS.tmbundle.",
"version": "0.62.1"
"version": "0.61.4"
}
],
"version": 1