text/x-java
*.java
//
/*
*/
.java
(\.[\s\n\r]*[\w]+)[\s\n\r]*(?=\(.*\))
\\( # leading backslash
[\\\"\'nrbtf] | # escaped character
[0-7]{1,3} | # latin encoded char
u[0-9a-fA-F]{4} # unicode char
)
"
"
\%{escaped-character}
"""\s*$
"""
\%{escaped-character}
'((\%{escaped-character})|.)'
\B@\w*
exports
import
module
open
opens
package
provides
requires
to
transitive
uses
with
class
enum
extends
implements
instanceof
interface
native
non-sealed
permits
record
sealed
throws
boolean
byte
char
double
float
int
long
short
var
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
yield
new
super
this
const
goto
_
null
false
true
\b(
\d+[fd] |
((\d*\.\d+|\d+\.)(e[-+]?\d+)? |
\d+e[-+]?\d+)[fd]?
)
\b(0x[\da-f]+|0[0-7]+)l?
\b([1-9]\d*|0)l?