David Lawrence Ramsey | 9368217 | 2006-06-08 12:49:57 +0000 | [diff] [blame] | 1 | ## Here is an example for Java. |
Benno Schulenberg | fe9da94 | 2014-05-16 20:21:34 +0000 | [diff] [blame] | 2 | |
David Lawrence Ramsey | 5e6434c | 2006-06-01 17:23:28 +0000 | [diff] [blame] | 3 | syntax "java" "\.java$" |
Chris Allegretta | b00d0b9 | 2011-02-13 04:23:10 +0000 | [diff] [blame] | 4 | magic "Java " |
Mike Scalora | 6a2032f | 2016-05-25 22:13:50 +0200 | [diff] [blame] | 5 | comment "//" |
Benno Schulenberg | fe9da94 | 2014-05-16 20:21:34 +0000 | [diff] [blame] | 6 | |
David Lawrence Ramsey | 5e6434c | 2006-06-01 17:23:28 +0000 | [diff] [blame] | 7 | color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" |
| 8 | color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" |
Benno Schulenberg | ed2f0b3 | 2015-02-21 10:34:15 +0000 | [diff] [blame] | 9 | color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native)\>" |
| 10 | color cyan "\<(package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>" |
David Lawrence Ramsey | 5e6434c | 2006-06-01 17:23:28 +0000 | [diff] [blame] | 11 | color red ""[^"]*"" |
| 12 | color yellow "\<(true|false|null)\>" |
| 13 | color blue "//.*" |
| 14 | color blue start="/\*" end="\*/" |
| 15 | color brightblue start="/\*\*" end="\*/" |
| 16 | color ,green "[[:space:]]+$" |