An open API service indexing awesome lists of open source software.

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

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

![](docs/image.png)

## Credit

Ohm language/syntax config is copied from https://github.com/attilah/ohm-vscode

[ohm-js]: https://ohmjs.org/