mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
88 lines
1.9 KiB
JSON
88 lines
1.9 KiB
JSON
{
|
|
"information_for_contributors": [
|
|
"This file has been converted from https://github.com/atom/language-php/blob/master/grammars/html.cson",
|
|
"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/29c140e1531e0b5e842e5bfd4377f879d8b79cd4",
|
|
"name": "PHP",
|
|
"scopeName": "text.html.php",
|
|
"injections": {
|
|
"text.html.php - (meta.embedded | meta.tag), L:text.html.php meta.tag, L:text.html.php source.js": {
|
|
"patterns": [
|
|
{
|
|
"include": "#php-tag"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"patterns": [
|
|
{
|
|
"begin": "\\A#!",
|
|
"beginCaptures": {
|
|
"0": {
|
|
"name": "punctuation.definition.comment.php"
|
|
}
|
|
},
|
|
"end": "$",
|
|
"name": "comment.line.shebang.php"
|
|
},
|
|
{
|
|
"include": "text.html.basic"
|
|
}
|
|
],
|
|
"repository": {
|
|
"php-tag": {
|
|
"patterns": [
|
|
{
|
|
"begin": "<\\?(?i:php|=)?(?![^?]*\\?>)",
|
|
"beginCaptures": {
|
|
"0": {
|
|
"name": "punctuation.section.embedded.begin.php"
|
|
}
|
|
},
|
|
"end": "(\\?)>",
|
|
"endCaptures": {
|
|
"0": {
|
|
"name": "punctuation.section.embedded.end.php"
|
|
},
|
|
"1": {
|
|
"name": "source.php"
|
|
}
|
|
},
|
|
"name": "meta.embedded.block.php",
|
|
"contentName": "source.php",
|
|
"patterns": [
|
|
{
|
|
"include": "source.php"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"begin": "<\\?(?i:php|=)?",
|
|
"beginCaptures": {
|
|
"0": {
|
|
"name": "punctuation.section.embedded.begin.php"
|
|
}
|
|
},
|
|
"end": "(\\?)>",
|
|
"endCaptures": {
|
|
"0": {
|
|
"name": "punctuation.section.embedded.end.php"
|
|
},
|
|
"1": {
|
|
"name": "source.php"
|
|
}
|
|
},
|
|
"name": "meta.embedded.line.php",
|
|
"contentName": "source.php",
|
|
"patterns": [
|
|
{
|
|
"include": "source.php"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |