]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/scala.yaml
.sbt files also contain Scala code
[micro.git] / runtime / syntax / scala.yaml
1 filetype: scala
2
3 detect:
4     filename: "\\.scala$|\\.sbt$"
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|with|final|implements|override|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile|sealed)\\b"
10     - constant.string:
11         start: "\""
12         end: "\""
13         skip: "\\\\."
14         rules:
15             - constant.specialChar: "\\\\."
16     - constant: "\\b(true|false|null)\\b"
17     - comment:
18         start: "//"
19         end: "$"
20         rules: []
21     - comment:
22         start: "/\\*"
23         end: "\\*/"
24         rules: []
25     - comment:
26         start: "/\\*\\*"
27         end: "\\*/"
28         rules: []
29