Improve performance for xml and html files

This commit is contained in:
Zachary Yedidia
2016-09-10 10:32:21 -04:00
parent fd786b3020
commit 210a538cdd
3 changed files with 4 additions and 5 deletions

View File

@@ -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)="

View File

@@ -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 "&[^;]*;"