This is an example repository containing a minimal CodeMirror language support package. The idea is to clone it, rename it, and edit it to create support for a new language.
Things you'll need to do (see the language support example for a more detailed tutorial):
git grep EXAMPLE
and replace all instances with your language name.Rewrite the grammar in
src/syntax.grammar
to cover your language. See the Lezer system guide for information on this file format.Adjust the metadata in
src/index.ts
to work with your new grammar.Adjust the grammar tests in
test/cases.txt
.Build (
npm run prepare
) and test (npm test
).Rewrite this readme file.
Optionally add a license.
Publish. Put your package on npm under a name like
codemirror-lang-EXAMPLE
.
generated from codemirror/lang-example
-
Notifications
You must be signed in to change notification settings - Fork 0
License
OBDDimal/codemirror-lang-uvl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published