[clike mode] Properly match character literals in Scala mode

This commit is contained in:
Marijn Haverbeke 2023-03-16 17:45:22 +01:00
parent c17c5f0abe
commit 9974ded36b
1 changed files with 1 additions and 0 deletions

View File

@ -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";
},