{{ message }}
Add mdsvex and Survex data#7194
Merged
Merged
Conversation
Adds support for the [`mdsvex`](https://github.com/pngwn/MDsveX) language, a Markdown preprocessor for Svelte. At the time of writing, a search returns 4.1k `mdsvex` 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=code 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`](https://github.com/svelte-society/sveltesociety.dev/blob/d2f08cc604a205e51aa8cae3856aae64498096d2/src/routes/recipes/stores/%2Bpage.svx), licenced under the [MIT License](https://github.com/svelte-society/sveltesociety.dev/blob/d2f08cc604a205e51aa8cae3856aae64498096d2/LICENSE). Colour was chosen to be identical to the [primary accent colour of the `mdsvex` website](https://github.com/pngwn/MDsveX/blob/f29f31c281c93a1f5e604ccc9f8e4cc14208a8d8/packages/site/static/global.css#L21) Note that the `.svx` extension is also used for [Survex data files](https://survex.com/docs/manual/datafile.htm). 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)/`
Adds support for the [Survex data](https://survex.com/docs/manual/datafile.htm) format, a plaintext data file format used for mapping caves. At the time of writing, a search returns 2.4k Survex data files hosted on GitHub: https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.svx+%2F%5CA%28%3B%7C%5C*%5B%5E*%5D%2B%24%29%2F No grammar or LSP exists for these, to my knowledge. Sample is taken from the [Philippine Surveys from the BEC expedition 2015](https://github.com/speleo/philippine-surveys-2015/blob/bad0f4490661908bcda3054226ab178bfa799f4a/Romeo/thTMPDIR/data.svx), in particular a temporary data file created by Therion during the mapping of the Romeo cave, licenced under the [Creative Commons Zero v1.0 Universal](https://github.com/speleo/philippine-surveys-2015/blob/bad0f4490661908bcda3054226ab178bfa799f4a/LICENSE) licence. Colour was chosen as the [background colour of the navigation bar of the Survex website](https://survex.com).
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
mdsvexlanguage, a Markdown preprocessor for Svelte. At the time of writing, a search returns 4.1kmdsvexfiles hosted on GitHub: https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.svx+NOT+%2F%5CA%28%3B%7C%5C*%5B%5E*%5D%2B%24%29%2FAdds support for the Survex data format, a plaintext data file format used for mapping caves. At the time of writing, a search returns 2.4k Survex data files hosted on GitHub: https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.svx+%2F%5CA%28%3B%7C%5C*%5B%5E*%5D%2B%24%29%2F
Adds a heuristic to distinguish Survex data and
mdsvexfiles.Description
No grammar or LSP for
mdsvexexists yet. Progress for these is tracked in pngwn/MDsveX#121. For code editors, files can best be marked as Markdown.No grammar or LSP for Survex data files exists (yet).
Sample for
mdsvexis taken fromsveltesociety.dev, licenced under the MIT License.Sample for Survex data is taken from the Philippine Surveys from the BEC expedition 2015, in particular a temporary data file created by Therion during the mapping of the Romeo cave, licenced under the Creative Commons Zero v1.0 Universal licence.
mdsvexcolour was chosen to be identical to the primary accent colour of themdsvexwebsiteSurvex data colour was chosen to be identical to the background colour of the navigation bar of the Survex website.
The following RegEx is used to distinguish Survex data files. All files which do not match this are assumed to be
mdsvexfiles.Checklist:
I have included a syntax highlighting grammarmdsvex: no 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).
mdsvex#5f9ea0mdsvexwebsite#ffcc99