From e5dd5c5f42b9c43757bc428958971b1cf4bf7a50 Mon Sep 17 00:00:00 2001 From: Kyle Stiemann Date: Tue, 30 Sep 2014 17:40:22 -0400 Subject: [PATCH] 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. --- html.nanorc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html.nanorc b/html.nanorc index f44bb01..62984df 100644 --- a/html.nanorc +++ b/html.nanorc @@ -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)=" \ No newline at end of file +color yellow ""[^"]*"|qq\|.*\|" +color red "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)="