Skip to content

Commit c4d8e10

Browse files
[scala mode] Add enum
Enums are available in Dotty and soon will be available in Scala.
1 parent 27de924 commit c4d8e10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mode/clike/clike.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
515515
"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
516516
),
517517
multiLineStrings: true,
518-
blockKeywords: words("catch class do else finally for forSome if match switch try while"),
519-
defKeywords: words("class def object package trait type val var"),
518+
blockKeywords: words("catch class enum do else finally for forSome if match switch try while"),
519+
defKeywords: words("class enum def object package trait type val var"),
520520
atoms: words("true false null"),
521521
indentStatements: false,
522522
indentSwitch: false,

0 commit comments

Comments
 (0)