Fixed HTML related expressions

This commit is contained in:
Andrea Dejan Grande 2019-04-28 03:44:03 +02:00
parent f9aabf3123
commit b9b9b49d4f
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
syntax "Pug" "\.pug$" syntax "Jade" "\.jade$"
# Elements # Elements
color yellow "^\s*([a-z0-9]+)" color yellow "^\s*([a-z0-9]+)"
# Main elements # Main elements
@ -24,7 +24,8 @@ color ,green "[[:space:]]+$"
# Unbuffered comments # Unbuffered comments
color brightblue "\s+(//-.*)" color brightblue "\s+(//-.*)"
# HTML-style conditional comments # HTML-style conditional comments
color brightmagenta "<!--(.*)>" color brightmagenta start="<!" end="!>"
color brightmagenta "<!\[endif\]-->"
# HTML-style elements # HTML-style elements
color yellow "<([^!].*)>" color yellow "<([^!].*)>"
# Pipes # Pipes

View File

@ -24,7 +24,8 @@ color ,green "[[:space:]]+$"
# Unbuffered comments # Unbuffered comments
color brightblue "\s+(//-.*)" color brightblue "\s+(//-.*)"
# HTML-style conditional comments # HTML-style conditional comments
color brightmagenta "<!--(.*)>" color brightmagenta start="<!" end="!>"
color brightmagenta "<!\[endif\]-->"
# HTML-style elements # HTML-style elements
color yellow "<([^!].*)>" color yellow "<([^!].*)>"
# Pipes # Pipes