]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/scala.yaml
Add support for skipping and remove need for lookbehind
[micro.git] / runtime / syntax / scala.yaml
1 filetype: scala
2
3 detect:
4     filename: "\\.scala$"
5
6 rules:
7     - type: "\\b(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\\b"
8     - statement: "\\b(match|val|var|break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\\b"
9     - statement: "\\b(def|object|case|trait|lazy|implicit|abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile|sealed)\\b"
10     - constant.string:
11         start: "\""
12         end: "\""
13         rules:
14             - constant.specialChar: "\\\\."
15     - constant: "\\b(true|false|null)\\b"
16     - comment:
17         start: "//"
18         end: "$"
19         rules: []
20     - comment:
21         start: "/\\*"
22         end: "\\*/"
23         rules: []
24     - comment:
25         start: "/\\*\\*"
26         end: "\\*/"
27         rules: []
28