| 1 |
filetype: java |
| 2 |
|
| 3 |
detect: |
| 4 |
filename: "\\.java$" |
| 5 |
|
| 6 |
rules: |
| 7 |
- type: "\\b(boolean|byte|char|double|float|int|long|new|var|short|this|transient|void)\\b" |
| 8 |
- statement: "\\b(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\\b" |
| 9 |
- type: "\\b(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\\b" |
| 10 |
- constant: "\\b(true|false|null)\\b" |
| 11 |
- constant.number: "\\b[0-9]+\\b" |
| 12 |
|
| 13 |
- constant.string: |
| 14 |
start: "\"" |
| 15 |
end: "\"" |
| 16 |
skip: "\\\\." |
| 17 |
rules: |
| 18 |
- constant.specialChar: "\\\\." |
| 19 |
|
| 20 |
- constant.string: |
| 21 |
start: "'" |
| 22 |
end: "'" |
| 23 |
skip: "\\\\." |
| 24 |
rules: |
| 25 |
- preproc: "..+" |
| 26 |
- constant.specialChar: "\\\\." |
| 27 |
|
| 28 |
- comment: |
| 29 |
start: "//" |
| 30 |
end: "$" |
| 31 |
rules: [] |
| 32 |
|
| 33 |
- comment: |
| 34 |
start: "/\\*" |
| 35 |
end: "\\*/" |
| 36 |
rules: [] |
| 37 |
|