You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.7 KiB
101 lines
2.7 KiB
3 years ago
|
{
|
||
|
"scopeName": "text.html.php",
|
||
|
"name": "PHP",
|
||
|
"fileTypes": [
|
||
|
"aw",
|
||
|
"ctp",
|
||
|
"inc",
|
||
|
"install",
|
||
|
"module",
|
||
|
"php",
|
||
|
"php_cs",
|
||
|
"php3",
|
||
|
"php4",
|
||
|
"php5",
|
||
|
"phpt",
|
||
|
"phtml",
|
||
|
"profile"
|
||
|
],
|
||
|
"firstLineMatch": "(?x)\n# Hashbang\n^\\#!.*(?:\\s|\\/)\n php\\d?\n(?:$|\\s)\n|\n# Modeline\n(?i:\n # Emacs\n -\\*-(?:\\s*(?=[^:;\\s]+\\s*-\\*-)|(?:.*?[;\\s]|(?<=-\\*-))mode\\s*:\\s*)\n php\n (?=[\\s;]|(?<![-*])-\\*-).*?-\\*-\n |\n # Vim\n (?:(?:\\s|^)vi(?:m[<=>]?\\d+|m)?|\\sex)(?=:(?=\\s*set?\\s[^\\n:]+:)|:(?!\\s*set?\\s))(?:(?:\\s|\\s*:\\s*)\\w*(?:\\s*=(?:[^\\n\\\\\\s]|\\\\.)*)?)*[\\s:](?:filetype|ft|syntax)\\s*=\n (?:php|phtml)\n (?=\\s|:|$)\n)\n|\n# Regular opening PHP tags\n^\\s*<\\?(?i:php|=|\\s|$)",
|
||
|
"foldingStartMarker": "(/\\*|\\{\\s*$|<<<HTML)",
|
||
|
"foldingStopMarker": "(\\*/|^\\s*\\}|^HTML;)",
|
||
|
"injections": {
|
||
|
"text.html.php - (meta.embedded | meta.tag), L:((text.html.php meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js.embedded.html - (meta.embedded.block.php | meta.embedded.line.php))": {
|
||
|
"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"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|