mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
Add cross-compilation script
This commit is contained in:
26
runtime/syntax/ocaml.micro
Normal file
26
runtime/syntax/ocaml.micro
Normal file
@@ -0,0 +1,26 @@
|
||||
syntax "OCaml" "\.mli?$"
|
||||
#uid
|
||||
color red "\b[A-Z][0-9a-z_]{2,}\b"
|
||||
#declarations
|
||||
color green "\b(let|val|method|in|and|rec|private|virtual|constraint)\b"
|
||||
#structure items
|
||||
color red "\b(type|open|class|module|exception|external)\b"
|
||||
#patterns
|
||||
color blue "\b(fun|function|functor|match|try|with)\b"
|
||||
#patterns-modifiers
|
||||
color yellow "\b(as|when|of)\b"
|
||||
#conditions
|
||||
color cyan "\b(if|then|else)\b"
|
||||
#blocs
|
||||
color magenta "\b(begin|end|object|struct|sig|for|while|do|done|to|downto)\b"
|
||||
#constantes
|
||||
color green "\b(true|false)\b"
|
||||
#modules/classes
|
||||
color green "\b(include|inherit|initializer)\b"
|
||||
#expr modifiers
|
||||
color yellow "\b(new|ref|mutable|lazy|assert|raise)\b"
|
||||
#brightblacks
|
||||
color white (s) "\(\*.*?\*\)"
|
||||
#strings (no multiline handling yet)
|
||||
color brightblack ""[^\"]*""
|
||||
|
||||
Reference in New Issue
Block a user