diff --git a/syntax/php.nanorc b/syntax/php.nanorc index a69c85a1..37d09780 100644 --- a/syntax/php.nanorc +++ b/syntax/php.nanorc @@ -13,10 +13,10 @@ color white "\<[a-z_]*\(" color cyan "\$[a-z_]+" # Types. -color green "\<(array|bool|callable|const|float|global|int|object|static|string|var)\>" +color green "\<(array|bool|callable|const|float|global|int|object|string|var)\>" # Directives and structure. -color brightyellow "\<(abstract|as|class|clone|declare|enddeclare|extends|function|implements|include(_once)?|inst(ance|ead)of|interface|namespace|new|private|protected|public|require(_once)?|trait|use|yield)\>" +color brightyellow "\<(abstract|as|class|clone|(end)?declare|extends|function|implements|include(_once)?|inst(ance|ead)of|interface|namespace|new|private|protected|public|require(_once)?|static|trait|use|yield)\>" color brightyellow "\<(case|catch|default|do|echo|else(if)?|end(for(each)?|if|switch|while)|final(ly)?|for(each)?|if|print|switch|throw|try|while)\>" # Operators. color brightyellow "\<(and|or|xor)\>"