micro/runtime/syntax/ocaml.micro

26 lines
767 B
Text
Raw Normal View History

syntax "ocaml" "\.mli?$"
2016-03-21 19:16:02 +03:00
#uid
2016-03-25 23:41:36 +03:00
color red "\<[A-Z][0-9a-z_]{2,}\>"
2016-03-21 19:16:02 +03:00
#declarations
2016-03-25 23:41:36 +03:00
color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>"
2016-03-21 19:16:02 +03:00
#structure items
2016-03-25 23:41:36 +03:00
color red "\<(type|open|class|module|exception|external)\>"
2016-03-21 19:16:02 +03:00
#patterns
2016-03-25 23:41:36 +03:00
color blue "\<(fun|function|functor|match|try|with)\>"
2016-03-21 19:16:02 +03:00
#patterns-modifiers
2016-03-25 23:41:36 +03:00
color yellow "\<(as|when|of)\>"
2016-03-21 19:16:02 +03:00
#conditions
2016-03-25 23:41:36 +03:00
color cyan "\<(if|then|else)\>"
2016-03-21 19:16:02 +03:00
#blocs
2016-03-25 23:41:36 +03:00
color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>"
2016-03-21 19:16:02 +03:00
#constantes
2016-03-25 23:41:36 +03:00
color green "\<(true|false)\>"
2016-03-21 19:16:02 +03:00
#modules/classes
2016-03-25 23:41:36 +03:00
color green "\<(include|inherit|initializer)\>"
2016-03-21 19:16:02 +03:00
#expr modifiers
2016-03-25 23:41:36 +03:00
color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
#comments
color white start="\(\*" end="\*\)"
2016-03-21 19:16:02 +03:00
#strings (no multiline handling yet)
color brightblack ""[^\"]*""