提交 f474fcb2 编写于 作者: A Alex Ross

update-grammars

上级 8046b730
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"git": { "git": {
"name": "ionide/ionide-fsgrammar", "name": "ionide/ionide-fsgrammar",
"repositoryUrl": "https://github.com/ionide/ionide-fsgrammar", "repositoryUrl": "https://github.com/ionide/ionide-fsgrammar",
"commitHash": "af2a9a88639f384c6e5d1340d510dc6fb743d514" "commitHash": "af037b23ca4c61b02799957a61cbd05b44355caf"
} }
}, },
"license": "MIT", "license": "MIT",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/ionide/ionide-fsgrammar/commit/af2a9a88639f384c6e5d1340d510dc6fb743d514", "version": "https://github.com/ionide/ionide-fsgrammar/commit/af037b23ca4c61b02799957a61cbd05b44355caf",
"name": "fsharp", "name": "fsharp",
"scopeName": "source.fsharp", "scopeName": "source.fsharp",
"patterns": [ "patterns": [
...@@ -910,7 +910,7 @@ ...@@ -910,7 +910,7 @@
"patterns": [ "patterns": [
{ {
"name": "binding.fsharp", "name": "binding.fsharp",
"begin": "\\b(let mutable|static let mutable|let inline|let|member val|static member inline|static member|default|member|override|let!)(\\s+rec|mutable)?(\\s+\\[\\<.*\\>\\])?\\s*(private|internal|public)?\\s+(\\[[^-=]*\\]|[_[:alpha:]]([_[:alpha:]0-9\\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9\\._`\\s]+|(?<=,)\\s)*)?", "begin": "\\b(let mutable|static let mutable|static let|let inline|let|member val|static member inline|static member|default|member|override|let!)(\\s+rec|mutable)?(\\s+\\[\\<.*\\>\\])?\\s*(private|internal|public)?\\s+(\\[[^-=]*\\]|[_[:alpha:]]([_[:alpha:]0-9\\._]+)*|``[_[:alpha:]]([_[:alpha:]0-9\\._`\\s]+|(?<=,)\\s)*)?",
"end": "\\s*(with\\b|=|\\n+=|(?<=\\=))", "end": "\\s*(with\\b|=|\\n+=|(?<=\\=))",
"beginCaptures": { "beginCaptures": {
"1": { "1": {
...@@ -1498,7 +1498,7 @@ ...@@ -1498,7 +1498,7 @@
"patterns": [ "patterns": [
{ {
"name": "variable.other.binding.fsharp", "name": "variable.other.binding.fsharp",
"match": "(``)(.*)(``)", "match": "(``)([^`]*)(``)",
"captures": { "captures": {
"1": { "1": {
"name": "string.quoted.single.fsharp" "name": "string.quoted.single.fsharp"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"git": { "git": {
"name": "atom/language-java", "name": "atom/language-java",
"repositoryUrl": "https://github.com/atom/language-java", "repositoryUrl": "https://github.com/atom/language-java",
"commitHash": "0facf7cbe02cda460db1160fd730f2e57bf15c36" "commitHash": "2e179ceac423403eb5bf0eff26884093c3edba6f"
} }
}, },
"license": "MIT", "license": "MIT",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/atom/language-java/commit/0facf7cbe02cda460db1160fd730f2e57bf15c36", "version": "https://github.com/atom/language-java/commit/2e179ceac423403eb5bf0eff26884093c3edba6f",
"name": "Java", "name": "Java",
"scopeName": "source.java", "scopeName": "source.java",
"patterns": [ "patterns": [
...@@ -221,22 +221,60 @@ ...@@ -221,22 +221,60 @@
"include": "#all-types" "include": "#all-types"
}, },
{ {
"begin": "(?<!\\])\\s*({)", "begin": "(?<=\\))",
"beginCaptures": { "end": "(?=;|\\)|\\]|\\.|,|\\?|:|}|\\+|\\-|\\*|\\/(?!\\/|\\*)|%|!|&|\\||\\^|=)",
"1": { "patterns": [
"name": "punctuation.section.inner-class.begin.bracket.curly.java" {
} "include": "#comments"
}, },
"end": "}", {
"endCaptures": { "begin": "{",
"0": { "beginCaptures": {
"name": "punctuation.section.inner-class.end.bracket.curly.java" "0": {
"name": "punctuation.section.inner-class.begin.bracket.curly.java"
}
},
"end": "}",
"endCaptures": {
"0": {
"name": "punctuation.section.inner-class.end.bracket.curly.java"
}
},
"name": "meta.inner-class.java",
"patterns": [
{
"include": "#class-body"
}
]
} }
}, ]
"name": "meta.inner-class.java", },
{
"begin": "(?<=\\])",
"end": "(?=;|\\)|\\]|\\.|,|\\?|:|}|\\+|\\-|\\*|\\/(?!\\/|\\*)|%|!|&|\\||\\^|=)",
"patterns": [ "patterns": [
{ {
"include": "#class-body" "include": "#comments"
},
{
"begin": "{",
"beginCaptures": {
"0": {
"name": "punctuation.section.array-initializer.begin.bracket.curly.java"
}
},
"end": "}",
"endCaptures": {
"0": {
"name": "punctuation.section.array-initializer.end.bracket.curly.java"
}
},
"name": "meta.array-initializer.java",
"patterns": [
{
"include": "#code"
}
]
} }
] ]
}, },
...@@ -419,6 +457,9 @@ ...@@ -419,6 +457,9 @@
{ {
"include": "#class" "include": "#class"
}, },
{
"include": "#record"
},
{ {
"include": "#anonymous-block-and-instance-initializer" "include": "#anonymous-block-and-instance-initializer"
}, },
...@@ -1331,7 +1372,7 @@ ...@@ -1331,7 +1372,7 @@
"name": "punctuation.separator.period.java" "name": "punctuation.separator.period.java"
}, },
"2": { "2": {
"name": "variable.other.property.java" "name": "variable.other.object.property.java"
} }
} }
}, },
...@@ -1348,6 +1389,147 @@ ...@@ -1348,6 +1389,147 @@
} }
] ]
}, },
"record": {
"begin": "(?=\\w?[\\w\\s]*\\b(?:record)\\s+[\\w$]+)",
"end": "}",
"endCaptures": {
"0": {
"name": "punctuation.section.class.end.bracket.curly.java"
}
},
"name": "meta.record.java",
"patterns": [
{
"include": "#storage-modifiers"
},
{
"include": "#generics"
},
{
"include": "#comments"
},
{
"begin": "(record)\\s+([\\w$]+)(<[\\w$]+>)?(\\()",
"beginCaptures": {
"1": {
"name": "storage.modifier.java"
},
"2": {
"name": "entity.name.type.record.java"
},
"3": {
"patterns": [
{
"include": "#generics"
}
]
},
"4": {
"name": "punctuation.definition.parameters.begin.bracket.round.java"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.definition.parameters.end.bracket.round.java"
}
},
"name": "meta.record.identifier.java",
"patterns": [
{
"include": "#code"
}
]
},
{
"begin": "(implements)\\s",
"beginCaptures": {
"1": {
"name": "storage.modifier.implements.java"
}
},
"end": "(?=\\s*\\{)",
"name": "meta.definition.class.implemented.interfaces.java",
"patterns": [
{
"include": "#object-types-inherited"
},
{
"include": "#comments"
}
]
},
{
"include": "#record-body"
}
]
},
"record-body": {
"begin": "{",
"beginCaptures": {
"0": {
"name": "punctuation.section.class.begin.bracket.curly.java"
}
},
"end": "(?=})",
"name": "meta.record.body.java",
"patterns": [
{
"include": "#record-constructor"
},
{
"include": "#class-body"
}
]
},
"record-constructor": {
"begin": "(?!new)(?=[\\w<].*\\s+)(?=([^\\(=/]|/(?!/))+(?={))",
"end": "(})|(?=;)",
"endCaptures": {
"1": {
"name": "punctuation.section.method.end.bracket.curly.java"
}
},
"name": "meta.method.java",
"patterns": [
{
"include": "#storage-modifiers"
},
{
"begin": "(\\w+)",
"beginCaptures": {
"1": {
"name": "entity.name.function.java"
}
},
"end": "(?=\\s*{)",
"name": "meta.method.identifier.java",
"patterns": [
{
"include": "#comments"
}
]
},
{
"include": "#comments"
},
{
"begin": "{",
"beginCaptures": {
"0": {
"name": "punctuation.section.method.begin.bracket.curly.java"
}
},
"end": "(?=})",
"contentName": "meta.method.body.java",
"patterns": [
{
"include": "#code"
}
]
}
]
},
"static-initializer": { "static-initializer": {
"patterns": [ "patterns": [
{ {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"git": { "git": {
"name": "textmate/perl.tmbundle", "name": "textmate/perl.tmbundle",
"repositoryUrl": "https://github.com/textmate/perl.tmbundle", "repositoryUrl": "https://github.com/textmate/perl.tmbundle",
"commitHash": "80826abe75250286c2a1a07958e50e8551d3f50c" "commitHash": "d9841a0878239fa43f88c640f8d458590f97e8f5"
} }
}, },
"licenseDetail": [ "licenseDetail": [
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"git": { "git": {
"name": "MagicStack/MagicPython", "name": "MagicStack/MagicPython",
"repositoryUrl": "https://github.com/MagicStack/MagicPython", "repositoryUrl": "https://github.com/MagicStack/MagicPython",
"commitHash": "c9b3409deb69acec31bbf7913830e93a046b30cc" "commitHash": "0b09c1fca238d22e15ac5712d03f9bf6da626f9c"
} }
}, },
"license": "MIT", "license": "MIT",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/MagicStack/MagicPython/commit/c9b3409deb69acec31bbf7913830e93a046b30cc", "version": "https://github.com/MagicStack/MagicPython/commit/0b09c1fca238d22e15ac5712d03f9bf6da626f9c",
"name": "MagicPython", "name": "MagicPython",
"scopeName": "source.python", "scopeName": "source.python",
"patterns": [ "patterns": [
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
"git": { "git": {
"name": "Microsoft/vscode-mssql", "name": "Microsoft/vscode-mssql",
"repositoryUrl": "https://github.com/Microsoft/vscode-mssql", "repositoryUrl": "https://github.com/Microsoft/vscode-mssql",
"commitHash": "a79741f76fd33bd137a8c28172c9750b978309b6" "commitHash": "a542fe96780e6b274adb281810d419a512fb5bb4"
} }
}, },
"license": "MIT", "license": "MIT",
"version": "1.6.0" "version": "1.9.0"
} }
], ],
"version": 1 "version": 1
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/Microsoft/vscode-mssql/commit/a79741f76fd33bd137a8c28172c9750b978309b6", "version": "https://github.com/Microsoft/vscode-mssql/commit/a542fe96780e6b274adb281810d419a512fb5bb4",
"name": "SQL", "name": "SQL",
"scopeName": "source.sql", "scopeName": "source.sql",
"patterns": [ "patterns": [
...@@ -404,7 +404,7 @@ ...@@ -404,7 +404,7 @@
} }
}, },
"comment": "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.", "comment": "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.",
"match": "(N)?(')[^']*(')", "match": "(N)?(')(?:[^'\\\\]|\\\\.)*(')",
"name": "string.quoted.single.sql" "name": "string.quoted.single.sql"
}, },
{ {
...@@ -437,7 +437,7 @@ ...@@ -437,7 +437,7 @@
} }
}, },
"comment": "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.", "comment": "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.",
"match": "(`)[^`\\\\]*(`)", "match": "(`)(?:[^`\\\\]|\\\\.)*(`)",
"name": "string.quoted.other.backtick.sql" "name": "string.quoted.other.backtick.sql"
}, },
{ {
...@@ -470,7 +470,7 @@ ...@@ -470,7 +470,7 @@
} }
}, },
"comment": "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.", "comment": "this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.",
"match": "(\")[^\"#]*(\")", "match": "(\")(?:[^\"#\\\\]|\\\\.)*(\")",
"name": "string.quoted.double.sql" "name": "string.quoted.double.sql"
}, },
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册