Skip to content

Commit

Permalink
[clike mode] Properly match character literals in Scala mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Mar 16, 2023
1 parent c17c5f0 commit 9974ded
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mode/clike/clike.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
},
Expand Down

0 comments on commit 9974ded

Please sign in to comment.