@op-ted/efx-syntax-highlighter
v0.2.1
Published
Lezer-based parser and CodeMirror 6 language support for EFX syntax highlighting.
Downloads
203
Readme
efx-syntax-highlighter
A minimal JavaScript package providing Lezer-based parsing and CodeMirror 6 language support for the efx language.
Features
- Lezer parser for efx
- CodeMirror 6 language extension
- Custom highlight theme
Usage
Install via npm:
npm install @op-ted/efx-syntax-highlighterImport and use in CodeMirror 6:
import { efx, efxHighlightStyle } from '@op-ted/efx-syntax-highlighter';
const editor = new EditorView({
extensions: [efx(), efxHighlightStyle]
});Build & Test
To build the parser:
npm run buildTo run tests:
npm testPublishing
- Only the
dist/output is published - Do not include grammar or test files in the package
- Use
npm publishto release
License
EUPL 2.0
