[clike mode] Properly match character literals in Scala mode
This commit is contained in:
parent
c17c5f0abe
commit
9974ded36b
|
@ -613,6 +613,7 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
|
|||
return state.tokenize(stream, state);
|
||||
},
|
||||
"'": function(stream) {
|
||||
if (stream.match(/^(\\[^'\s]+|[^\\'])'/)) return "string-2"
|
||||
stream.eatWhile(/[\w\$_\xa1-\uffff]/);
|
||||
return "atom";
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue