Mercurial > repos > other > linux
changeset 96:67d3ac391320
Reduce colouring for HTML/XML attributes
Just colour the string, not the attribute name
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 02 Apr 2018 19:42:00 +0100 |
parents | e7a2fbd79035 |
children | 79a926514260 |
files | nanorc.d/php.nanorc nanorc.d/xml.nanorc |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nanorc.d/php.nanorc Mon Apr 02 19:36:29 2018 +0100 +++ b/nanorc.d/php.nanorc Mon Apr 02 19:42:00 2018 +0100 @@ -32,7 +32,7 @@ # General HTML color brightblue start="<[a-zA-Z/]" end=">" color red "&[^;[[:space:]]]*;" -color yellow "[a-zA-Z_-]+=["']?[^"']+["']" +color yellow "["'][^"']*["']" color green start="<!--" end="-->" color white start="<!DOCTYPE" end=">" # xhtml
--- a/nanorc.d/xml.nanorc Mon Apr 02 19:36:29 2018 +0100 +++ b/nanorc.d/xml.nanorc Mon Apr 02 19:42:00 2018 +0100 @@ -3,6 +3,6 @@ color brightblue start="<[a-zA-Z/]" end=">" color red "&[^;[[:space:]]]*;" -color yellow "[a-zA-Z_-]+=["']?[^"']+["']" +color yellow "["'][^"']*["']" color green start="<!--" end="-->" color magenta start="<!\[CDATA\[" end="\]\]>"