Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for the
mdsvex
language, a Markdown preprocessor for Svelte. At the time of writing, a search returns 4.1kmdsvex
files hosted on GitHub: https://github.com/search?q=path%3A*.svx+NOT+%2F%5CA%28%3B%7C%5C*begin%5Cs%7C%5C*units%5Cs%29%2F+NOT+is%3Afork&type=codeDescription
No grammar or LSP exists yet. Progress for these is tracked in pngwn/MDsveX#121
For code editors, files can best be marked as Markdown.
Sample is taken from
sveltesociety.dev
, licenced under the MIT License.Colour was chosen to be identical to the primary accent colour of the
mdsvex
websiteNote that the
.svx
extension is also used for Survex data files. Since that is currently not supported, no heuristic was added. Should the need to add such a heuristic arise in the future, the following RegEx will match for Survex data files:/\A(;|\*begin\s|\*units\s)/
Checklist:
I have included a syntax highlighting grammarNo grammar exists yet, progress is tracked in VS Code syntax highlighting? File Type Icon? pngwn/MDsveX#121.
For code editors, files can best be marked as Markdown (see linked PR).
#5f9ea0
mdsvex
websiteI have updated the heuristics to distinguish my language from others using the same extension.Extension is also used for Survex data files,
however Linguist currently doesn't support those, so no heuristic was added.
Should the need for one arise in the future, the following RegEx will match Survex data files:
/\A(;|\*begin\s|\*units\s)/