mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
e5dd5c5f42
Since the non-greedy operator `?` causes an error, I've implemented non-greedy matching using not-quote zero or more times (`[^"]*`) instead.
8 lines
312 B
Plaintext
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)="
|