https://github.com/skitsanos/codemirror-lang-hurl
Hurl language support for CodeMirror
https://github.com/skitsanos/codemirror-lang-hurl
Last synced: 7 months ago
JSON representation
Hurl language support for CodeMirror
- Host: GitHub
- URL: https://github.com/skitsanos/codemirror-lang-hurl
- Owner: skitsanos
- License: mit
- Created: 2022-08-24T13:25:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T11:46:48.000Z (almost 2 years ago)
- Last Synced: 2025-01-15T20:20:01.177Z (9 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeMirror 6 Hurl language package
This is an example repository containing a minimal [CodeMirror](https://codemirror.net/6/) 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](https://codemirror.net/6/examples/lang-package/) for a more detailed tutorial):
* Rewrite the grammar in `src/syntax.grammar` to cover your language. See the [Lezer system guide](https://lezer.codemirror.net/docs/guide/#writing-a-grammar) 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-hurl`.