diff --git a/rc/filetype/ocaml.kak b/rc/filetype/ocaml.kak index af31001a3..f5b9a2e19 100644 --- a/rc/filetype/ocaml.kak +++ b/rc/filetype/ocaml.kak @@ -29,10 +29,33 @@ provide-module ocaml %{ add-highlighter shared/ocaml regions add-highlighter shared/ocaml/code default-region group add-highlighter shared/ocaml/string region (?/?]+ 0:operator + + # Macro # ‾‾‾‾‾ @@ -44,6 +67,7 @@ evaluate-commands %sh{ printf %s\\n "declare-option str-list ocaml_static_words ${keywords}" | tr '|' ' ' +# must be put at last, since we have highlighted some keywords ('type' in 'module type') to other things printf %s " add-highlighter shared/ocaml/code/ regex \b(${keywords})\b 0:keyword "