$OpenBSD: patch-doc_syntax_php_nanorc,v 1.1 2009/12/01 19:39:31 naddy Exp $
--- doc/syntax/php.nanorc.orig	Fri Aug 14 05:16:32 2009
+++ doc/syntax/php.nanorc	Tue Dec  1 18:48:12 2009
@@ -6,16 +6,16 @@ syntax "php" "\.php[2345s~]?$"
 color brightgreen "(<\?(php)?|\?>)"
 
 ## functions
-color white "\<[a-z_]*\("
+color white "[[:<:]][a-z_]*\("
 
 ## types
-color green "\<(var|float|global|double|bool|char|int|enum|const)\>"
+color green "[[:<:]](var|float|global|double|bool|char|int|enum|const)[[:>:]]"
 
 ## structure
-color brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>"
+color brightyellow "[[:<:]](class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)[[:>:]]"
 
 ## control flow
-color magenta "\<(goto|continue|break|return)\>"
+color magenta "[[:<:]](goto|continue|break|return)[[:>:]]"
 
 ## strings
 color brightyellow "<[^=       ]*>" ""(\.|[^"])*""
