2017-02-18 23:17:07 +03:00
|
|
|
filetype: scala
|
|
|
|
|
2017-03-21 22:07:39 +03:00
|
|
|
detect:
|
2022-07-24 23:59:12 +03:00
|
|
|
filename: "\\.sc(ala)?$|\\.sbt$"
|
2017-02-18 23:17:07 +03:00
|
|
|
|
|
|
|
rules:
|
|
|
|
- type: "\\b(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\\b"
|
|
|
|
- statement: "\\b(match|val|var|break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\\b"
|
2017-10-04 12:17:50 +03:00
|
|
|
- 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"
|
2021-01-06 03:59:28 +03:00
|
|
|
- constant.string:
|
|
|
|
start: "\"\"\""
|
|
|
|
end: "\"\"\""
|
|
|
|
rules: []
|
2017-03-21 22:07:39 +03:00
|
|
|
- constant.string:
|
|
|
|
start: "\""
|
2017-03-28 03:53:08 +03:00
|
|
|
end: "\""
|
2017-03-29 16:45:16 +03:00
|
|
|
skip: "\\\\."
|
2017-03-21 22:07:39 +03:00
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
- constant: "\\b(true|false|null)\\b"
|
|
|
|
- comment:
|
|
|
|
start: "//"
|
|
|
|
end: "$"
|
|
|
|
rules: []
|
2017-02-18 23:17:07 +03:00
|
|
|
- comment:
|
|
|
|
start: "/\\*"
|
|
|
|
end: "\\*/"
|
|
|
|
rules: []
|
2017-03-21 22:07:39 +03:00
|
|
|
- comment:
|
2017-02-18 23:17:07 +03:00
|
|
|
start: "/\\*\\*"
|
|
|
|
end: "\\*/"
|
|
|
|
rules: []
|
2017-03-23 02:03:06 +03:00
|
|
|
|