]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/scala.yaml
Merge branch 'patch-1' of https://github.com/mardukbp/micro into mardukbp-patch-1
[micro.git] / runtime / syntax / scala.yaml
1 filetype: scala
2
3 detect:
4     filename: "\\.sc(ala)?$|\\.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         rules: []
14     - constant.string:
15         start: "\""
16         end: "\""
17         skip: "\\\\."
18         rules:
19             - constant.specialChar: "\\\\."
20     - constant: "\\b(true|false|null)\\b"
21     - comment:
22         start: "//"
23         end: "$"
24         rules: []
25     - comment:
26         start: "/\\*"
27         end: "\\*/"
28         rules: []
29     - comment:
30         start: "/\\*\\*"
31         end: "\\*/"
32         rules: []
33