diff options
Diffstat (limited to 'doc/syntax/php.nanorc')
-rw-r--r-- | doc/syntax/php.nanorc | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/doc/syntax/php.nanorc b/doc/syntax/php.nanorc index 8ef495f..e3c4f1f 100644 --- a/doc/syntax/php.nanorc +++ b/doc/syntax/php.nanorc @@ -1,30 +1,31 @@ -## Here is an example for PHP -## +## Here is an example for PHP. + syntax "php" "\.php[2345s~]?$" +magic "PHP script text" -## php markings +# PHP markings. color brightgreen "(<\?(php)?|\?>)" -## functions +# Functions. color white "\<[a-z_]*\(" -## types +# Types. color green "\<(var|float|global|double|bool|char|int|enum|const)\>" -## structure +# Structure. color brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>" -## control flow +# Control flow. color magenta "\<(goto|continue|break|return)\>" -## strings +# Strings. color brightyellow "<[^= ]*>" ""(\.|[^"])*"" -## comments +# Comments. color brightblue "//.*" color brightblue start="/\*" end="\*/" -#color blue start="<" end=">" -#color red "&[^;[[:space:]]]*;" +##color blue start="<" end=">" +##color red "&[^;[[:space:]]]*;" -## Trailing whitespace +# Trailing whitespace. color ,green "[[:space:]]+$" |