Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novusnota/vscode-ohm
Ohm language support for Visual Studio Code (VSCode)
https://github.com/novusnota/vscode-ohm
extension grammars lsp lsp-client ohm ohmjs peg vscode-extension vscode-language
Last synced: 3 months ago
JSON representation
Ohm language support for Visual Studio Code (VSCode)
- Host: GitHub
- URL: https://github.com/novusnota/vscode-ohm
- Owner: novusnota
- License: mit
- Created: 2024-01-29T15:00:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-01-30T22:23:54.000Z (9 months ago)
- Last Synced: 2024-07-25T01:57:42.261Z (3 months ago)
- Topics: extension, grammars, lsp, lsp-client, ohm, ohmjs, peg, vscode-extension, vscode-language
- Homepage: https://ohmjs.org/
- Size: 61.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-ohm
[Ohm language](https://github.com/ohmjs/ohm) support for Visual Studio Code (VSCode). Currently provides syntax highlighting only. Rather strict, enforces each `RuleBody` to be written on one line, starting with `|`. However, this limitation provides for great formatting!
## Manual installation
1. Clone this repository
2. Run `npm i` to install dependencies
3. Run `npm run vsce pack` to bundle extension in `.vsix` format
4. Use `Extensions: Install from VSIX` command in your VSCode and point it to the newly bundled extension## Samples
* `samples/tact-grammar.ohm` is taken from [tact-lang/tact](https://github.com/tact-lang/tact/blob/main/src/grammar/grammar.ohm) under MIT license
* `samples/ohm-grammar.ohm` with slight modifications is taken from [ohmjs/ohm](https://github.com/ohmjs/ohm/blob/main/packages/ohm-js/src/ohm-grammar.ohm) under MIT license## License
[MIT](LICENSE)