2020-04-20 20:15:43 +03:00
|
|
|
## Syntax highlighting for Java.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2018-02-07 13:25:46 +03:00
|
|
|
syntax java "\.java$"
|
2011-02-13 07:23:10 +03:00
|
|
|
magic "Java "
|
2016-05-25 23:13:50 +03:00
|
|
|
comment "//"
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2006-06-01 21:23:28 +04: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 13:34:15 +03: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 21:23:28 +04:00
|
|
|
color red ""[^"]*""
|
|
|
|
color yellow "\<(true|false|null)\>"
|
|
|
|
color blue "//.*"
|
|
|
|
color blue start="/\*" end="\*/"
|
|
|
|
color brightblue start="/\*\*" end="\*/"
|
|
|
|
color ,green "[[:space:]]+$"
|