Author | Jamozed <[email protected]> |
Date | 2023-05-15 05:09:51 |
Commit | 3985c5a4b3b355fd1d4ed54d630c5215de8ffa5a |
Parent | 1c3f0f730f13597d1681bde12d6132f78d19c6db |
Replace SVG badges with PNGs
Diffstat
M | README.md | | | 6 | ++++-- |
M | package.json | | | 14 | +++++++------- |
M | syntaxes/ebnf.mdCodeblock.json | | | 4 | ++-- |
3 files changed, 13 insertions, 11 deletions
diff --git a/README.md b/README.md index dc13ff7..611ec22 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,15 @@ # EBNF for Visual Studio Code -[![Version](https://vsmarketplacebadges.dev/version/omkov.vscode-ebnf.svg)](https://marketplace.visualstudio.com/items?itemName=OMKOV.vscode-ebnf) -[![Installs](https://vsmarketplacebadges.dev/installs/omkov.vscode-ebnf.svg)](https://marketplace.visualstudio.com/items?itemName=OMKOV.vscode-ebnf) +[![Version](https://vsmarketplacebadges.dev/version/omkov.vscode-ebnf.png)](https://marketplace.visualstudio.com/items?itemName=OMKOV.vscode-ebnf) +[![Installs](https://vsmarketplacebadges.dev/installs/omkov.vscode-ebnf.png)](https://marketplace.visualstudio.com/items?itemName=OMKOV.vscode-ebnf) ## About EBNF for Visual Studio Code provides EBNF syntax highlihting for Visual Studio Code. Files with the extension `.ebnf` will automatically be affected. +EBNF code blocks in Markdown are also supported. + ![Syntax Highlighting](./screenshot.png) ## Build Instructions diff --git a/package.json b/package.json index 9044f49..f5d7b4f 100644 --- a/package.json +++ b/package.json @@ -24,13 +24,13 @@ "path": "./syntaxes/ebnf.tmLanguage.json" }, { - "scopeName": "markdown.ebnf.codeblock", - "path": "./syntaxes/ebnf.mdCodeblock.json", - "injectTo": ["text.html.markdown"], - "embeddedLanguages": { - "meta.embedded.block.ebnf": "ebnf" - } - } + "scopeName": "markdown.ebnf.codeblock", + "path": "./syntaxes/ebnf.mdCodeblock.json", + "injectTo": [ "text.html.markdown" ], + "embeddedLanguages": { + "meta.embedded.block.ebnf": "ebnf" + } + } ] }, "icon": "icon.png", diff --git a/syntaxes/ebnf.mdCodeblock.json b/syntaxes/ebnf.mdCodeblock.json index a4203b6..28b01be 100644 --- a/syntaxes/ebnf.mdCodeblock.json +++ b/syntaxes/ebnf.mdCodeblock.json @@ -1,4 +1,5 @@ { + "scopeName": "markdown.ebnf.codeblock", "fileTypes": [], "injectionSelector": "L:markup.fenced_code.block.markdown", "patterns": [ @@ -23,6 +24,5 @@ } ] } - }, - "scopeName": "markdown.ebnf.codeblock" + } }