\#
//
/\*
\*/
\b0[xX][0-9a-fA-F]+ # hex number
|
\b0[0-9]+ # octal number
|
( \b\d+(\.[0-9]+)? #number with optional floating point
| \.[0-9]+ #or just starting with floating point
)
([eE][+-]?[0-9]+)? # optional exponent
[?,.:;()\[\]{}+\-/%*<>&^!|~@]+
\b
[\d\w_]+ # an identifier
(?=\s*\() # followed by (
'
'
"
"
<<<\"?[\d\w_]+\"?$
^[\d\w_]+;
<<<\'[\d\w_]+\'$
^[\d\w_]+;
global
my
var
and
or
new
clone
instanceof
xor
true
false
else
else
switch
case
endif
elseif
do
for
foreach
while
endwhile
exit
break
continue
default
goto
return
require
include
require
include
function
int
integer
real
double
float
string
array
object
class
void
public
private