2014-02-23 16:07:44 +00:00
|
|
|
## Syntax highlighting for OCaml.
|
|
|
|
|
2008-10-01 00:49:19 +00:00
|
|
|
syntax "ocaml" "\.mli?$"
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "(*|*)"
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2015-12-30 20:57:31 +00:00
|
|
|
# Uid:
|
2008-10-01 00:49:19 +00:00
|
|
|
color red "\<[A-Z][0-9a-z_]{2,}\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Declarations:
|
2008-10-01 00:49:19 +00:00
|
|
|
color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Structure items:
|
2008-10-01 00:49:19 +00:00
|
|
|
color red "\<(type|open|class|module|exception|external)\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Patterns:
|
2008-10-01 00:49:19 +00:00
|
|
|
color blue "\<(fun|function|functor|match|try|with)\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Pattern modifiers:
|
2014-05-16 20:21:34 +00:00
|
|
|
color yellow "\<(as|when|of)\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Conditions:
|
2008-10-01 00:49:19 +00:00
|
|
|
color cyan "\<(if|then|else)\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Blocks:
|
2008-10-01 00:49:19 +00:00
|
|
|
color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Constants:
|
2008-10-01 00:49:19 +00:00
|
|
|
color green "\<(true|false)\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Modules/classes:
|
2008-10-01 00:49:19 +00:00
|
|
|
color green "\<(include|inherit|initializer)\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Expression modifiers:
|
2008-10-01 00:49:19 +00:00
|
|
|
color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Comments:
|
2008-10-01 00:49:19 +00:00
|
|
|
color white start="\(\*" end="\*\)"
|
2015-12-30 20:57:31 +00:00
|
|
|
# Strings: (no multiline handling yet)
|
2008-10-01 00:49:19 +00:00
|
|
|
color brightblack ""[^\"]*""
|