Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Sane ReasonML GrammarNew to Visual Studio Code? Get it now.
Sane ReasonML Grammar

Sane ReasonML Grammar

glennsl

|
1,879 installs
| (0) | Free
Provides a coherent ReasonML grammar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sane ReasonML Grammar

This ia based on the grammar included in OCaml and Reason IDE, which unfortunately is hand-tuned in a rather haphazard way to be "optimized" for a few of the original author's preferred themes, to the detriment of everything else. This fork attempts to provide a more coherent grammar that properly distinguishes different tokens so that they can be properly selected for highlighting. In effect, this should provide a better default for most themes (except, of course, the select few the original grammar was hand-tuned for) and moves the repsonsibility of optimizing highlighting for specific languages from the grammar to each theme, where it should be to remain maintainable (and quite frankly just plain sane).

Acknowledgement

Thanks to Darrin Morrison for creating the original grammar this is based on.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft