You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Api for registering custom languages
May not be the best, but it works :}
Allows registering a custom wasm with a custom language id
Can overwrite the built in languages
Can register a custom language id with one of the built in wasms
#34 (comment)
* Reload documents corresponding to the language id
* Revert `let languages = { }` back to `const`
* const => let
Co-authored-by: Pokey Rule <[email protected]>
* find => some
Co-authored-by: Pokey Rule <[email protected]>
* Parsing a Custom language
* Remove `const` on ` absolute`
* Remove ability to overwrite languages
* `wasm` => `wasmPath`
* Update README.md
* I assume this is what you mean by exception
* Improve documentation
* More tweaks
Co-authored-by: Pokey Rule <[email protected]>
If you'd like to add support for a new language, see the [Adding a new language](#adding-a-new-language) section below. Alternatively, your extension can register a custom language with this extension. Although this is not the preferred way to add a new language, it can be convenient when you have a parser that you don't believe belongs in the main extension.
26
+
27
+
Parsing your own language is as simple as registering your `languageId` with an absolute path to your `.wasm` file:
0 commit comments