Allow injection grammars to specify embedded languages (#34327)
Fixes #34316
Enables contributed injection grammars to specify an embedded language for their injection targets:
```json
"grammars": [
{
"scopeName": "meta.embedded.css",
"path": "./syntaxes/injection.json",
"injectTo": [
"source.js",
"source.jsx",
"source.ts",
"source.tsx"
],
"embeddedLanguages": {
"meta.embedded.css": "css"
}
}
]
``` M
Matt Bierner committed
890d41f7fa518b261e31d7a8e1c64a1c61de5cab
Parent: 4c566f0
Committed by GitHub <noreply@github.com>
on 9/18/2017, 7:37:13 PM