2020-04-20 17:15:43 +00:00
|
|
|
## Syntax highlighting for Java.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2018-02-07 10:25:46 +00:00
|
|
|
syntax java "\.java$"
|
2011-02-13 04:23:10 +00:00
|
|
|
magic "Java "
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "//"
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2006-06-01 17:23:28 +00:00
|
|
|
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
|
|
|
|
color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
|
2015-02-21 10:34:15 +00:00
|
|
|
color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native)\>"
|
|
|
|
color cyan "\<(package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
|
2006-06-01 17:23:28 +00:00
|
|
|
color red ""[^"]*""
|
|
|
|
color yellow "\<(true|false|null)\>"
|
|
|
|
color blue "//.*"
|
|
|
|
color blue start="/\*" end="\*/"
|
|
|
|
color brightblue start="/\*\*" end="\*/"
|
|
|
|
color ,green "[[:space:]]+$"
|