Update HTML highlighting ruleset and merge J2 templating rules into it

This commit is contained in:
Simon Volpert 2019-01-05 13:53:26 +02:00
parent 6a3d34f7ed
commit 92baad770c
No known key found for this signature in database
GPG key ID: C88435385910CF33
2 changed files with 38 additions and 25 deletions

View file

@ -1,17 +0,0 @@
## Here is a short improved example for HTML.
##
syntax "HTML" "\.htm[l]?.j2$"
color brightblue start="<" end=">"
color red "&[^;[[:space:]]]*;"
color yellow ""[^"]*"|qq\|.*\|"
color red "(action|alt|bgcolor|height|href|id|label|longdesc|method|name|onclick|onfocus|onload|onmouseover|rel|size|span|src|style|target|title|type|value|width)="
color magenta start="<!--" end="-->"
## Trailing spaces
color ,green "[[:space:]]+$"
## Jinja templating
color green "\{{2}.*\}{2}"
color green "\{\%.*\%\}"
color brightcyan "(if|endif|for)"