Skip to content

Wren language support for the CodeMirror code editor.

License

Notifications You must be signed in to change notification settings

exercism/codemirror-lang-wren

Repository files navigation

codemirror-lang-wren NPM Version

This package implements Wren language support for the CodeMirror code editor. Originally derived from the JavaScript grammar and language support.

The project page for CodeMirror has more information, a number of examples and the documentation.

This code is released under an MIT license.

Language Support + Lezer Grammar

This includes both the CodeMirror LanguageSupport and the LRLanguage grammar all bundled into a single small repository with a simple build process.

Maintainers

There is a very rough developer tool in devtool that can be used for testing.

npm run build-devtool

API Reference

wren() → LanguageSupport

Wren support. Includes snippet completion.

wrenLanguage: LRLanguage

A language provider based on the Lezer Wren parser provided in this very same package, extended with highlighting and indentation information.

lezerParser: Lezer#Parser

Lezer Wren parser.

snippets: Completion[]

A collection of simple Wren-related snippets.