-
Notifications
You must be signed in to change notification settings - Fork 0
/
html-php.tmLanguage.json
64 lines (64 loc) · 2.59 KB
/
html-php.tmLanguage.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"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/2bf736a814e1a58aa63470c1a29590bd02e924e7",
"name": "PHP",
"scopeName": "text.html.php",
"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 - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (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.derivative" }
],
"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" }]
}
]
}
}
}