$OpenBSD: patch-doc_syntax_ocaml_nanorc,v 1.1 2009/12/01 19:39:31 naddy Exp $
--- doc/syntax/ocaml.nanorc.orig	Fri Aug 14 05:16:32 2009
+++ doc/syntax/ocaml.nanorc	Tue Dec  1 18:48:12 2009
@@ -2,25 +2,25 @@
 #
 syntax "ocaml" "\.mli?$"
 #uid
-color red "\<[A-Z][0-9a-z_]{2,}\>"
+color red "[[:<:]][A-Z][0-9a-z_]{2,}[[:>:]]"
 #declarations
-color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>"
+color green "[[:<:]](let|val|method|in|and|rec|private|virtual|constraint)[[:>:]]"
 #structure items
-color red "\<(type|open|class|module|exception|external)\>"
+color red "[[:<:]](type|open|class|module|exception|external)[[:>:]]"
 #patterns
-color blue "\<(fun|function|functor|match|try|with)\>"
+color blue "[[:<:]](fun|function|functor|match|try|with)[[:>:]]"
 #patterns-modifiers
-color yellow "\<(as|when|of)\>" 
+color yellow "[[:<:]](as|when|of)[[:>:]]" 
 #conditions
-color cyan "\<(if|then|else)\>"
+color cyan "[[:<:]](if|then|else)[[:>:]]"
 #blocs
-color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>"
+color magenta "[[:<:]](begin|end|object|struct|sig|for|while|do|done|to|downto)[[:>:]]"
 #constantes
-color green "\<(true|false)\>"
+color green "[[:<:]](true|false)[[:>:]]"
 #modules/classes
-color green "\<(include|inherit|initializer)\>"
+color green "[[:<:]](include|inherit|initializer)[[:>:]]"
 #expr modifiers
-color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
+color yellow "[[:<:]](new|ref|mutable|lazy|assert|raise)[[:>:]]"
 #comments
 color white start="\(\*" end="\*\)"
 #strings (no multiline handling yet)
