Skip to content

0x-jerry/vscode-ohm

Repository files navigation

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:

{
  "ohm-js.validator": [
    {
      "match": ["**/*.math"],
      "grammar": "validate/math.ohm"
    }
  ]
}

See example

Super Grammar Reference

Use the below comment format to specify the referenced grammar file. Please see example.

// @GrammarName => path/to/grammar.ohm

Screenshot

Credit

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

About

Unofficial ohm-js language support for vscode

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors