Add syntax flags and fix a couple highlighting bugs

This commit is contained in:
Zachary Yedidia
2016-03-21 14:48:17 -04:00
parent 96254717c6
commit b8f6850c58
50 changed files with 204 additions and 185 deletions

View File

@@ -1,6 +1,6 @@
## PHP Syntax Highlighting
syntax "PHP" "\.php[2345s~]?$"
color white "(?s)<\?(php|=)?.*?\?>"
color white (s) "<\?(php|=)?.*?\?>"
# Functions
color brightblue "([a-zA-Z0-9_-]*)\("
# Constructs
@@ -33,8 +33,9 @@ color white "\{\$[^}]*\}"
# PHP Tags
color red "(<\?(php)?|\?>)"
# General HTML
color red "(?s)\?>.*?<\?(php|=)?"
color red (s) "\?>.*?<\?(php|=)?"
# trailing whitespace
color ,green "[^[:space:]]{1}[[:space:]]+$"
# multi-line comments
color brightyellow "(?s)/\*.*?\*/"
color brightyellow (s) "/\*.*?\*/"