Skip to content

Commit b4a40b3

Browse files
committed
[mllike mode] Don't treat (*) as a comment
Closes codemirror#6870
1 parent 191ae47 commit b4a40b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/mllike/mllike.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ CodeMirror.defineMode('mllike', function(_config, parserConfig) {
6060
}
6161
}
6262
if (ch === '(') {
63-
if (stream.eat('*')) {
63+
if (stream.match(/^\*(?!\))/)) {
6464
state.commentLevel++;
6565
state.tokenize = tokenComment;
6666
return state.tokenize(stream, state);

0 commit comments

Comments
 (0)