micro/runtime/syntax/scala.yaml

24 lines
822 B
YAML
Raw Normal View History

filetype: scala
2017-03-21 21:55:22 +03:00
detect:
filename: "\\.scala$"
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"
- 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"
2017-03-21 21:55:22 +03:00
- constant.string: "\"[^\"]*\""
- constant.bool: "\\b(true|false|null)\\b"
- comment: "//.*"
- comment:
start: "/\\*"
end: "\\*/"
rules: []
2017-03-21 21:55:22 +03:00
- comment.bright:
start: "/\\*\\*"
end: "\\*/"
rules: []
2017-03-21 21:55:22 +03:00
- indent-char.whitespace: "[[:space:]]+$"