Unofficial ohm-js language support for vscode
- Syntax highlight
- Jump to definition
- Hover to show definition source
- Provide rule symbols
- Rename rule symbols
- Provide rule completion
- Problem diagnostic
- Realtime syntax check
Example Configuration:
{
"ohm-js.validator": [
{
"match": ["**/*.math"],
"grammar": "validate/math.ohm"
}
]
}See example
Use the below comment format to specify the referenced grammar file. Please see example.
// @GrammarName => path/to/grammar.ohmOhm language/syntax config is copied from https://github.com/attilah/ohm-vscode
