]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/php.micro
Added some SCSS keywords for the css/scss highlighting
[micro.git] / runtime / syntax / php.micro
1 syntax "php" "\.php[2345s~]?$"
2 color default start="<\?(php|=)?" end="\?>"
3
4 color special "([a-zA-Z0-9_-]+)\("
5
6 color identifier "(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|interface|[E|e]xception|array|int|string|bool)[\s|\)]"
7
8 color identifier "[a-zA-Z\\]+::"
9
10 color identifier "new\s([a-zA-Z0-9\\]+)"
11 color identifier "([A-Z][a-zA-Z0-9_]+)\s"
12 color identifier "([A-Z0-9_]+)[;|\s|\)|,]"
13
14 color statement "(implements|abstract|global|public|instanceof|private|protected|static|if|else|elseif|endif|namespace|use|as|new|throw|catch|try|return)[\s|;]"
15
16 color constant "(true|false|null|TRUE|FALSE|NULL)"
17
18 color constant "[\s|=|>|\s|\(|/|+|-|\*|\[](\d+)"
19
20 color identifier "(\$this|parent|self|\$this->)"
21
22 color statement "(=>|===|!==|==|!=|&&|\|\||::|=|->|\!)"
23
24 color default "(\$[a-zA-Z0-9\-_]+)"
25 color default "[\(|\)|/|+|-|\*|\[|,|;]"
26
27 color constant.string "('.*?'|\".*?\")"
28
29 color comment start="/\*" end="\*/"
30 color comment "(#.*|//.*)$"