1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-12 20:24:15 +01:00
nanorc/html.nanorc
Kyle Stiemann e5dd5c5f42 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.
2014-09-30 18:15:26 -04:00

8 lines
312 B
Plaintext

## Here is a short improved example for HTML.
##
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)="