Mercurial > repos > other > linux
changeset 86:3f3f641d5a8b
Tidy up some tag oddities
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 02 Apr 2018 16:47:17 +0100 |
parents | ef08bb127ede |
children | 7d8c0070471c |
files | nanorc.d/php.nanorc |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/nanorc.d/php.nanorc Mon Apr 02 16:42:48 2018 +0100 +++ b/nanorc.d/php.nanorc Mon Apr 02 16:47:17 2018 +0100 @@ -6,8 +6,6 @@ # PHP code color black start="<\?(php|=)?" end="\?>" -# PHP tags -color brightblue "<\?(php|=)|\?>" # Function names. @@ -33,12 +31,15 @@ # Strings. color yellow ""(\.|[^"])*"" "'(\.|[^'])*'" +# Numbers +color blue "\b[0-9]+\b" + # Comments. color green "(^|[[:space:]]+)//.*" color green start="/\*" end="\*/" # General HTML -color brightblue start="<[a-zA-Z/]" end="[^\?]>" +color brightblue start="<[a-zA-Z/]" end=">" color red "&[^;[[:space:]]]*;" color yellow "[a-zA-Z_-]+=["']?[^"']+["']" color green start="<!--" end="-->" @@ -46,6 +47,8 @@ # xhtml color white start="<\?xml" end="\?>" +# PHP tags +color brightblue "<\?(php|=)|\?>" # Trailing whitespace. color ,green "[[:space:]]+$"