mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Update grammars
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
"git": {
|
||||
"name": "language-php",
|
||||
"repositoryUrl": "https://github.com/atom/language-php",
|
||||
"commitHash": "72739e6341b1b4bf4aa185e928932983baca449e"
|
||||
"commitHash": "2bf736a814e1a58aa63470c1a29590bd02e924e7"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "0.46.0"
|
||||
"version": "0.46.2"
|
||||
}
|
||||
],
|
||||
"version": 1
|
||||
|
||||
@@ -4,111 +4,10 @@
|
||||
"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/atom/language-php/commit/b6c5e83016b52311cdc622c2579462861ee91587",
|
||||
"version": "https://github.com/atom/language-php/commit/2bf736a814e1a58aa63470c1a29590bd02e924e7",
|
||||
"name": "PHP",
|
||||
"scopeName": "text.html.php",
|
||||
"injections": {
|
||||
"L:source.php string.quoted.single.sql.php source.sql.embedded.php": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(#)(\\\\'|[^'])*(?='|$)",
|
||||
"name": "comment.line.number-sign.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(--)(\\\\'|[^'])*(?='|$)",
|
||||
"name": "comment.line.double-dash.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\\\[\\\\'`\"]",
|
||||
"name": "constant.character.escape.php"
|
||||
},
|
||||
{
|
||||
"match": "\"(?=((\\\\\")|[^\"'])*('|$))",
|
||||
"name": "string.quoted.double.unclosed.sql"
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:source.php string.quoted.double.sql.php source.sql.embedded.php": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(#)(\\\\\"|[^\"])*(?=\"|$)",
|
||||
"name": "comment.line.number-sign.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(--)(\\\\\"|[^\"])*(?=\"|$)",
|
||||
"name": "comment.line.double-dash.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\\\[\\\\'`\"]",
|
||||
"name": "constant.character.escape.php"
|
||||
},
|
||||
{
|
||||
"match": "(')([^'\\\\]*)(')",
|
||||
"name": "string.quoted.single.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.sql"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.php#interpolation_double_quoted"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.string.end.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(`)([^`\\\\]*)(`)",
|
||||
"name": "string.quoted.other.backtick.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.sql"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.php#interpolation_double_quoted"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.string.end.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "'(?=((\\\\')|[^'\"])*(\"|$))",
|
||||
"name": "string.quoted.single.unclosed.sql"
|
||||
},
|
||||
{
|
||||
"include": "source.php#interpolation_double_quoted"
|
||||
}
|
||||
]
|
||||
},
|
||||
"text.html.php - (meta.embedded | meta.tag), L:((text.html.php meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))": {
|
||||
"patterns": [
|
||||
{
|
||||
|
||||
@@ -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/atom/language-php/commit/5fae657cf989701e9594912772daff33249839b3",
|
||||
"version": "https://github.com/atom/language-php/commit/2bf736a814e1a58aa63470c1a29590bd02e924e7",
|
||||
"scopeName": "source.php",
|
||||
"patterns": [
|
||||
{
|
||||
@@ -2824,6 +2824,59 @@
|
||||
},
|
||||
"name": "string.quoted.double.sql.php",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(#)(\\\\\"|[^\"])*(?=\"|$)",
|
||||
"name": "comment.line.number-sign.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(--)(\\\\\"|[^\"])*(?=\"|$)",
|
||||
"name": "comment.line.double-dash.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\\\[\\\\\"`']",
|
||||
"name": "constant.character.escape.php"
|
||||
},
|
||||
{
|
||||
"match": "'(?=((\\\\')|[^'\"])*(\"|$))",
|
||||
"name": "string.quoted.single.unclosed.sql"
|
||||
},
|
||||
{
|
||||
"match": "`(?=((\\\\`)|[^`\"])*(\"|$))",
|
||||
"name": "string.quoted.other.backtick.unclosed.sql"
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"name": "string.quoted.single.sql",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolation_double_quoted"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "`",
|
||||
"end": "`",
|
||||
"name": "string.quoted.other.backtick.sql",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolation_double_quoted"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#interpolation_double_quoted"
|
||||
},
|
||||
{
|
||||
"include": "source.sql"
|
||||
}
|
||||
@@ -2845,6 +2898,36 @@
|
||||
},
|
||||
"name": "string.quoted.single.sql.php",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(#)(\\\\'|[^'])*(?='|$)",
|
||||
"name": "comment.line.number-sign.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(--)(\\\\'|[^'])*(?='|$)",
|
||||
"name": "comment.line.double-dash.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\\\[\\\\'`\"]",
|
||||
"name": "constant.character.escape.php"
|
||||
},
|
||||
{
|
||||
"match": "`(?=((\\\\`)|[^`'])*('|$))",
|
||||
"name": "string.quoted.other.backtick.unclosed.sql"
|
||||
},
|
||||
{
|
||||
"match": "\"(?=((\\\\\")|[^\"'])*('|$))",
|
||||
"name": "string.quoted.double.unclosed.sql"
|
||||
},
|
||||
{
|
||||
"include": "source.sql"
|
||||
}
|
||||
@@ -3685,4 +3768,4 @@
|
||||
"name": "keyword.operator.null-coalescing.php"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user