-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
# JSON Embedded Languages | ||
Syntax Highlighting for embedded languages within `JSON` and `JSONC` files. | ||
It does so by overriding the default `JSON` and `JSONC` languages and assigning scopeNames to objects with the form `.meta.embedded.object-key-name.`. | ||
Then using multiple injection grammars that target and inject specific languages into it. | ||
|
||
|
||
## Features | ||
* ShellScript within `"scripts"` for `package.json` (`JSON`) | ||
Requires the builtin `ShellScript` extension or [better-shell-syntax](https://marketplace.visualstudio.com/items?itemName=jeff-hykin.better-shellscript-syntax) | ||
 | ||
|
||
Syntax Highlighting for ShellScript language within `package.json` `"scripts"`. | ||
 | ||
* Regular Expressions within `"wordPattern"`, `"folding"`, `"onEnterRules"` and `"indentationRules"` for `language-configuration.json` (`JSONC`) | ||
Requires [JSON TextMate](https://marketplace.visualstudio.com/items?itemName=RedCMD.tmlanguage-syntax-highlighter) extension | ||
 | ||
|
||
* Snippets, Regex and Markdown within `"defaultSnippets"`, `"pattern"` and `"markdownDescription"` for `.schema.json` (`JSON`) | ||
Requires the builtin `JSON Snippets` extension or [Snippets Snippets](https://marketplace.visualstudio.com/items?itemName=RedCMD.snippets-snippets), [JSON TextMate](https://marketplace.visualstudio.com/items?itemName=RedCMD.tmlanguage-syntax-highlighter) and the builtin `Markdown` extension | ||
 | ||
|
||
## Known Issues | ||
|
||
This extension targets every JSON file, not just `package.json`. | ||
However only a root level `"scripts"` object is affected. | ||
## Known Issues | ||
|
||
This extension targets every `JSON` and `JSONC` file, not just `package.json`. | ||
There will be false positives and false negatives. | ||
Please report any you come across. | ||
|
||
--- | ||
|
||
## For more information | ||
|
||
* The GitHub [Issue](https://github.com/microsoft/vscode/issues/224581) that spawned the idea | ||
* https://github.com/jeff-hykin/better-shell-syntax/issues/100 | ||
* [Repository](https://github.com/RedCMD/JSON-Embedded-Languages) | ||
* [Marketplace](https://marketplace.visualstudio.com/items?itemName=RedCMD.json-embedded-languages) | ||
* [Marketplace](https://marketplace.visualstudio.com/items?itemName=RedCMD.json-embedded-languages) |
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.