2017-02-18 23:17:07 +03:00
|
|
|
filetype: java
|
|
|
|
|
2017-03-21 21:55:22 +03:00
|
|
|
detect:
|
2017-02-18 23:17:07 +03:00
|
|
|
filename: "\\.java$"
|
|
|
|
|
|
|
|
rules:
|
|
|
|
- type: "\\b(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\\b"
|
|
|
|
- statement: "\\b(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\\b"
|
2017-03-21 21:55:22 +03:00
|
|
|
- type.keyword: "\\b(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\\b"
|
|
|
|
- constant.string: "\"[^\"]*\""
|
|
|
|
- constant.bool: "\\b(true|false|null)\\b"
|
2017-02-18 23:17:07 +03:00
|
|
|
- constant.number: "\\b[0-9]+\\b"
|
2017-03-21 21:55:22 +03:00
|
|
|
- comment: "//.*"
|
2017-02-18 23:17:07 +03:00
|
|
|
- comment:
|
2017-03-21 21:55:22 +03:00
|
|
|
start: "/\\*"
|
|
|
|
end: "\\*/"
|
2017-02-18 23:17:07 +03:00
|
|
|
rules: []
|
|
|
|
|
|
|
|
- comment:
|
2017-03-21 21:55:22 +03:00
|
|
|
start: "/\\*\\*"
|
2017-02-18 23:17:07 +03:00
|
|
|
end: "\\*/"
|
|
|
|
rules: []
|
2017-03-21 21:55:22 +03:00
|
|
|
|