X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Focaml.micro;h=6f9fc6074561dc58363f3f9589172d87090809c8;hb=069df5ef0bcce8936a136243ae8d25d3d7258673;hp=40a4b89b0d223b37fde3b3e045a9f4c71327d2a1;hpb=28b07d62e625b688646cbdcf0571ae079079a4e9;p=micro.git diff --git a/runtime/syntax/ocaml.micro b/runtime/syntax/ocaml.micro index 40a4b89b..6f9fc607 100644 --- a/runtime/syntax/ocaml.micro +++ b/runtime/syntax/ocaml.micro @@ -1,26 +1,25 @@ -syntax "OCaml" "\.mli?$" +syntax "ocaml" "\.mli?$" #uid -color red "\b[A-Z][0-9a-z_]{2,}\b" +color red "\<[A-Z][0-9a-z_]{2,}\>" #declarations -color green "\b(let|val|method|in|and|rec|private|virtual|constraint)\b" +color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>" #structure items -color red "\b(type|open|class|module|exception|external)\b" +color red "\<(type|open|class|module|exception|external)\>" #patterns -color blue "\b(fun|function|functor|match|try|with)\b" +color blue "\<(fun|function|functor|match|try|with)\>" #patterns-modifiers -color yellow "\b(as|when|of)\b" +color yellow "\<(as|when|of)\>" #conditions -color cyan "\b(if|then|else)\b" +color cyan "\<(if|then|else)\>" #blocs -color magenta "\b(begin|end|object|struct|sig|for|while|do|done|to|downto)\b" +color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>" #constantes -color green "\b(true|false)\b" +color green "\<(true|false)\>" #modules/classes -color green "\b(include|inherit|initializer)\b" +color green "\<(include|inherit|initializer)\>" #expr modifiers -color yellow "\b(new|ref|mutable|lazy|assert|raise)\b" -#brightblacks -color white (s) "\(\*.*?\*\)" +color yellow "\<(new|ref|mutable|lazy|assert|raise)\>" +#comments +color white start="\(\*" end="\*\)" #strings (no multiline handling yet) color brightblack ""[^\"]*"" -