2017-03-01 14:30:35 +00:00
#This file probably needs cleanup!!
2016-08-25 00:15:36 +00:00
syntax "php" "\.php[2345s~]?$"
2017-03-01 14:30:35 +00:00
color symbol.brackets "<.+?>"
color preproc "<\?(php|=)?"
color preproc "\?>"
#color preproc start="<\?(php|=)?" end="\?>"
2016-09-01 19:24:31 +00:00
2017-03-01 14:30:35 +00:00
color identifier.class "([a-zA-Z0-9_-]+)\("
2016-09-01 19:24:31 +00:00
2017-03-01 14:30:35 +00:00
color type "(var|class|goto|extends|function|echo|case|break|default|exit|switch|foreach|endforeach|while|const|static|extends|as|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|trait|interface|[E|e]xception|array|int|string|bool|iterable|void)[\s|\)]"
2016-09-01 19:24:31 +00:00
2017-03-01 14:30:35 +00:00
color identifier.class "[a-zA-Z\\]+::"
2016-09-01 19:24:31 +00:00
color identifier "new\s([a-zA-Z0-9\\]+)"
color identifier "([A-Z][a-zA-Z0-9_]+)\s"
color identifier "([A-Z0-9_]+)[;|\s|\)|,]"
color statement "(implements|abstract|global|public|instanceof|private|protected|static|if|else|elseif|endif|namespace|use|as|new|throw|catch|try|return)[\s|;]"
2017-03-01 14:30:35 +00:00
color constant.bool "(true|false|null|TRUE|FALSE|NULL)"
2016-09-01 19:24:31 +00:00
color constant "[\s|=|>|\s|\(|/|+|-|\*|\[](\d+)"
color identifier "(\$this|parent|self|\$this->)"
2017-03-01 14:30:35 +00:00
color symbol.operator "(=>|===|!==|==|!=|&&|\|\||::|=|->|\!)"
2016-09-01 19:24:31 +00:00
2017-03-01 14:30:35 +00:00
color identifier.var "(\$[a-zA-Z0-9\-_]+)"
color symbol.operator "[\(|\)|/|+|-|\*|\[|,|;]"
2016-09-01 19:24:31 +00:00
2016-12-22 23:34:10 +00:00
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
color constant.specialChar "\\[abfnrtv'\"\\]"
2016-09-01 19:24:31 +00:00
2016-12-23 23:25:47 +00:00
color comment "(^|[[:space:]])//.*"
color comment "(^|[[:space:]])#.*"
2016-09-01 19:24:31 +00:00
color comment start="/\*" end="\*/"