@@ -11,7 +11,7 @@ color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
11
11
color brightblue " \< (var| class| function| echo| case| break| default| exit| switch| if| else| elseif| endif| foreach| endforeach| @| while| public| private| protected| return| const| static| extends| as| array| require| include| require_once| include_once| define| do| continue| declare| goto| print| in| namespace| use)\> "
12
12
color brightblue " [a -zA -Z0 -9_ ]+ :"
13
13
# Variables
14
- # color green "\$[a-zA-Z_0-9]*|[=!<>]"
14
+ # color green "\$[a-zA-Z_0-9$ ]*|[=!<>]"
15
15
# color green "\->[a-zA-Z_0-9$]*|[=!<>]"
16
16
color green " \$ [a -zA -Z_0 -9 ]* "
17
17
color green " \- >[a -zA -Z_0 -9 ]* "
@@ -24,7 +24,7 @@ color yellow "[.,{}();]"
24
24
color cyan " \[ "
25
25
color cyan " \] "
26
26
# Numbers
27
- color magenta " [+ - ]* ([0 -9 ]\. )* [0 -9 ]+ ([eE ][+ - ]? ( [0 -9 ]\. ) * [ 0 - 9 ]) * "
27
+ color magenta " \< [+ - ]? ([0 -9 ]* \. )? [0 -9 ]+ ([eE ][+ - ]? [0 -9 ]+ ) ? \> "
28
28
color magenta " 0x[0 -9a -zA -Z ]* "
29
29
# Special Variables
30
30
color brightblue " (\$ this| parent::| self::| \$ this->)"
@@ -47,7 +47,7 @@ color red "\"([^"\]|\\.)*\""
47
47
# Single quoted string
48
48
color red "' ([^' \] | \\ . )* '"
49
49
# Heredoc (typically ends with a semicolon ).
50
- color red start="<<< [' \" ]? [A -Z ][A -Z0 -9_ ]* [' \" ]? " end="^ [A -Z ][A -Z0 -9_ ]* ;"
50
+ color red start="<<< [\" ]? [A -Z ][A -Z0 -9_ ]* [\" ]? " end="^ [A -Z ][A -Z0 -9_ ]* ;"
51
51
# Inline Variables
52
52
color white "\{\$ [^ } ]* \} "
53
53
# Online Comments
@@ -60,3 +60,5 @@ color red start="\?>" end="<\?(php|=)?"
60
60
color ,green "[[:space :] ]+ $ "
61
61
# multi-line comments
62
62
color brightyellow start="/\* " end="\* /"
63
+ # Nowdoc
64
+ color red start="<<<'[A -Z ][A -Z0 -9_ ]* '" end="^ [A -Z ][A -Z0 -9_ ]* ;"
0 commit comments