Skip to content

Commit 92d4db4

Browse files
committed
[php] Switch to textmate grammar. Fixes microsoft#5986
1 parent 5b4adc7 commit 92d4db4

6 files changed

Lines changed: 3775 additions & 537 deletions

File tree

extensions/php/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@
1111
"contributes": {
1212
"languages": [{
1313
"id": "php",
14-
"extensions": [ ".php", ".phtml", ".ctp" ],
14+
"extensions": [ ".php", ".php4", ".php5", ".phtml", ".ctp" ],
1515
"aliases": [ "PHP", "php" ],
1616
"mimetypes": ["application/x-php"],
1717
"configuration": "./php.configuration.json"
1818
}],
19+
"grammars": [{
20+
"language": "php",
21+
"scopeName": "text.html.php",
22+
"path": "./syntaxes/php.json"
23+
}],
1924
"snippets": [{
2025
"language": "php",
2126
"path": "./snippets/php.json"

extensions/php/php.configuration.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
["[", "]"],
99
["(", ")"]
1010
]
11+
1112
}

extensions/php/syntaxes/php.json

Lines changed: 2638 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)