Skip to content

VS Code extension for syntax highlighting of few OCaml tools

Notifications You must be signed in to change notification settings

jfthuong/vscode-ocaml-tools

Repository files navigation

OCaml Tools Syntax Highlighting

Support additional syntax highlighting for few OCaml tools in Visual Studio Code.

Additionally, it provides few snippets for these same file types.

Getting Started

This extension requires the extension OCaml and Reason IDE for formatting Ocaml code.

Features

Highlighting

This extension provides additional syntax highlighting for OCaml and related tools:

  • ocp-build by OCaml PRO (.ocp)
  • Ocamllex (.mll)
  • Ocamlyacc (.mly)

Snippets

Snippets for .ocp:

  • program
  • library
  • test

Known Issues

  • .ocp Files:
    • begin / end block inside a list of files is not properly highlighted
  • .mll Files:
    • Comments not properly highlighted
    • Top-Level curly brackets cannot be collapsed / expanded
  • .mly Files:
    • Comments strangely highlighted sometimes in the rules

FAQ

Where do the Grammar rules come

The grammar syntaxes for .mll and .mly came from the deprecated extension vscode-ocaml, with some modifications for OCamlyacc (.mly).

About

VS Code extension for syntax highlighting of few OCaml tools

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages