mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Improve performance for xml and html files
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## Here is a short improved example for HTML.
|
||||
##
|
||||
syntax "html" "\.htm[l]?$"
|
||||
color identifier start="<" end=">"
|
||||
color identifier "<.*?>"
|
||||
color special "&[^;[[:space:]]]*;"
|
||||
color constant ""[^"]*"|qq\|.*\|"
|
||||
color statement "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)="
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
## Here is an example for xml files.
|
||||
|
||||
syntax "xml" "\.(xml|sgml?|rng|plist)$"
|
||||
color statement "<[^> ]+"
|
||||
color statement ">"
|
||||
color identifier "<.*?>"
|
||||
color comment start="<!DOCTYPE" end="[/]?>"
|
||||
color comment start="<!--" end="-->"
|
||||
color special "&[^;]*;"
|
||||
|
||||
Reference in New Issue
Block a user