https://github.com/0x-jerry/vscode-ohm
Unofficial ohm-js language support for vscode
https://github.com/0x-jerry/vscode-ohm
ohm ohm-js vscode
Last synced: about 1 month ago
JSON representation
Unofficial ohm-js language support for vscode
- Host: GitHub
- URL: https://github.com/0x-jerry/vscode-ohm
- Owner: 0x-jerry
- License: mit
- Created: 2024-05-08T10:24:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-08T16:58:23.000Z (10 months ago)
- Last Synced: 2025-08-08T18:38:29.418Z (10 months ago)
- Topics: ohm, ohm-js, vscode
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=fantasy.vscode-ohm
- Size: 764 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VSCode Ohm Language Extension
Unofficial [ohm-js] language support for vscode
## Features
- Syntax highlight
- Jump to definition
- Hover to show definition source
- Provide rule symbols
- Rename rule symbols
- Provide rule completion
- Problem diagnostic
- Realtime syntax check
## Realtime Syntax Check
Example Configuration:
```json
{
"ohm-js.validator": [
{
"match": ["**/*.math"],
"grammar": "validate/math.ohm"
}
]
}
```
See [example](./playground/validate/)
## Super Grammar Reference
Use the below comment format to specify the referenced grammar file. Please see [example](./playground/es6.ohm).
```ts
// @GrammarName => path/to/grammar.ohm
```
## Screenshot

## Credit
Ohm language/syntax config is copied from https://github.com/attilah/ohm-vscode
[ohm-js]: https://ohmjs.org/