Fixes #14552: Introduce embeddedLanguages in grammars extension point and adopt it for html and php

This commit is contained in:
Alex Dima
2016-10-27 14:57:12 +02:00
parent 2db37ea17a
commit 80cbf2e25e
4 changed files with 370 additions and 41 deletions

View File

@@ -19,7 +19,16 @@
"grammars": [{
"language": "php",
"scopeName": "text.html.php",
"path": "./syntaxes/php.json"
"path": "./syntaxes/php.json",
"embeddedLanguages": {
"text.html": "html",
"source.php": "php",
"source.sql": "sql",
"text.xml": "xml",
"source.js": "javascript",
"source.json": "json",
"source.css": "css"
}
}],
"snippets": [{
"language": "php",