https://github.com/nezteb/codemirror-lang-odin
https://github.com/nezteb/codemirror-lang-odin
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nezteb/codemirror-lang-odin
- Owner: Nezteb
- License: mit
- Created: 2023-09-30T21:48:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-30T21:55:50.000Z (almost 3 years ago)
- Last Synced: 2025-10-09T03:22:11.976Z (10 months ago)
- Language: Odin
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeMirror: Odin
- https://odin-lang.org
- https://codemirror.net/examples/lang-package/
- https://lezer.codemirror.net
### Tree Sitter
- https://github.com/lezer-parser/import-tree-sitter
### Related Odin Implementations
- Tree Sitter
- https://github.com/ap29600/tree-sitter-odin
- https://github.com/MineBill/tree-sitter-odin
- Vim
- https://github.com/Tetralux/odin.vim
### Similar Languages
- CodeMirror/Lezer
- https://github.com/jared-hughes/codemirror-lang-zig
- Tree Sitter
- https://github.com/maxxnino/tree-sitter-zig
- Vim
## CodeMirror 6 language package template
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):
* `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](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-EXAMPLE`.