Default Sublime Text highlighting for OCaml sucks. I've fixed it.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Document.sublime-snippet
For-Loop.sublime-snippet
Indent rules.tmPreferences
Miscellaneous.tmPreferences
OCaml.tmLanguage
OCamllex.tmLanguage
OCamlyacc.tmLanguage
README.md
Symbol List%3A Classes.tmPreferences
Symbol List%3A Exceptions.tmPreferences
Symbol List%3A Ocamllex pattern definition.tmPreferences
Symbol List%3A Ocamllex pattern references.tmPreferences
Symbol List%3A Ocamllex rules.tmPreferences
Symbol List%3A Ocamlyacc non-terminal definition.tmPreferences
Symbol List%3A Ocamlyacc non-terminal reference.tmPreferences
Symbol List%3A Ocamlyacc token definition.tmPreferences
Symbol List%3A Ocamlyacc token reference.tmPreferences
Symbol List%3A Types.tmPreferences
Symbol List%3A Variants.tmPreferences
Symbol List_ Classes.tmPreferences
Symbol List_ Exceptions.tmPreferences
Symbol List_ Ocamllex pattern definition.tmPreferences
Symbol List_ Ocamllex pattern references.tmPreferences
Symbol List_ Ocamllex rules.tmPreferences
Symbol List_ Ocamlyacc non-terminal definition.tmPreferences
Symbol List_ Ocamlyacc non-terminal reference.tmPreferences
Symbol List_ Ocamlyacc token definition.tmPreferences
Symbol List_ Ocamlyacc token reference.tmPreferences
Symbol List_ Types.tmPreferences
Symbol List_ Variants.tmPreferences
While-Loop.sublime-snippet
begin.sublime-snippet
camlp4.tmLanguage
class.sublime-snippet
fun.sublime-snippet
func.sublime-snippet
function-label.sublime-snippet
if.sublime-snippet
let-in.sublime-snippet
let.sublime-snippet
match-pattern.sublime-snippet
match.sublime-snippet
method-(method).sublime-snippet
module-signature.sublime-snippet
module-type.sublime-snippet
module.sublime-snippet
thread.sublime-snippet
try.sublime-snippet
type-(type).sublime-snippet

README.md

Better OCaml

This plugin is a drop-in replacement for the default OCaml package, fixing many of its shortcomings.

Installation

  1. Navigate to the Packages folder (Preferences → Browse Packages...)
  2. Unzip the ZIP archive of Better OCaml. Or, use git clone git://github.com/whitequark/sublime-better-ocaml, so that you could use git pull to update.

Features

  • Fixed highlighting of object-oriented code,
  • Added missing keywords and combinations: inherit!, val mutable and others,
  • Added support for keywords added by Pa_lwt syntax extension,
  • Added support for locally abstract types (let foo (type a) (bar : a) = ...).