]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/java.yaml
e606de693792d65b002eafe63361cc984a14db13
[micro.git] / runtime / syntax / java.yaml
1 filetype: java
2
3 detect: 
4     filename: "\\.java$"
5
6 rules:
7     - type: "\\b(boolean|byte|char|double|float|int|long|new|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.keyword: "\\b(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\\b"
10     - constant.string: "\"[^\"]*\""
11     - constant.bool: "\\b(true|false|null)\\b"
12     - constant.number: "\\b[0-9]+\\b"
13     - comment: "//.*"
14     - comment:
15         start: "/\\*"
16         end: "\\*/"
17         rules: []
18
19     - comment:
20         start: "/\\*\\*"
21         end: "\\*/"
22         rules: []
23