mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Since the non-greedy operator `?` causes an error, I've implemented non-greedy matching using not-quote zero or more times (`[^"]*`) instead.
7 lines
312 B
Text
7 lines
312 B
Text
## 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)="
|