Fixes #43: html.nanorc yellow regex is greedy and matches all quotes until the final quote.

Since the non-greedy operator `?` causes an error, I've implemented non-greedy matching using not-quote zero or more times (`[^"]*`) instead.
This commit is contained in:
Kyle Stiemann 2014-09-30 17:40:22 -04:00
parent 02cfdc3a63
commit e5dd5c5f42
1 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,5 @@
syntax "html" "\.htm[l]?$"
color brightblue start="<" end=">"
color red "&[^;[[:space:]]]*;"
color yellow "".*"|qq\|.*\|"
color red "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)="
color yellow ""[^"]*"|qq\|.*\|"
color red "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)="