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