Skip to content

Commit 6fa5752

Browse files
jvanderloo-atlassianmarijnh
authored andcommitted
[mathematica mode] Fix stuck-stream error on unrecognized syntax
1 parent 6f1ce2a commit 6fa5752

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mode/mathematica/mathematica.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ CodeMirror.defineMode('mathematica', function(_config, _parserConfig) {
126126
}
127127

128128
// everything else is an error
129+
stream.next(); // advance the stream.
129130
return 'error';
130131
}
131132

0 commit comments

Comments
 (0)