mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 08:35:39 +01:00
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:
parent
02cfdc3a63
commit
e5dd5c5f42
@ -3,5 +3,5 @@
|
|||||||
syntax "html" "\.htm[l]?$"
|
syntax "html" "\.htm[l]?$"
|
||||||
color brightblue start="<" end=">"
|
color brightblue start="<" end=">"
|
||||||
color red "&[^;[[:space:]]]*;"
|
color red "&[^;[[:space:]]]*;"
|
||||||
color yellow "".*"|qq\|.*\|"
|
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 red "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)="
|
||||||
|
Loading…
Reference in New Issue
Block a user