mirror of
https://github.com/scopatz/nanorc
synced 2024-11-25 09:55:40 +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)="
|