text/x-java
*.java
//
/*
*/
\\( # leading backslash
[\\\"\'nrbtf] | # escaped character
[0-9]{1,3} | # latin encoded char
u[0-9]{1,4} # unicode char
)
"
"
\%{escaped-character}
'(\%{escaped-character}|.)'
import
package
class
enum
extends
implements
instanceof
interface
native
throws
boolean
byte
char
double
float
int
long
short
void
abstract
final
static
strictfp
synchronized
transient
volatile
private
protected
public
assert
break
case
catch
continue
default
do
else
finally
for
if
return
throw
switch
try
while
new
super
this
const
goto
null
false
true
(\b([0-9]+|0[xX][0-9a-fA-F]+)[Ll]?\b|
\b(([0-9]+[Ee][-]?[0-9]+|
([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFdD]?|
[0-9]+[FfDd]))