Skip to content

Commit 4c28bec

Browse files
committed
Fix matching of empty string
1 parent 7341286 commit 4c28bec

2 files changed

Lines changed: 678 additions & 643 deletions

File tree

src/de/halirutan/mathematica/lexer/Mathematica.flex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Out = "%"+
225225

226226
<IN_COMMENT> {
227227
{CommentStart} { yypushstate(IN_COMMENT); return MathematicaElementTypes.COMMENT_START;}
228-
[^\(\*\):]* { return MathematicaElementTypes.COMMENT_CONTENT; }
228+
[^\(\*\):]+ { return MathematicaElementTypes.COMMENT_CONTENT; }
229229
"::"[A-Z][A-Za-z]*"::" {return MathematicaElementTypes.COMMENT_SECTION; }
230230
":"[A-Z][A-Za-z ]*":" {return MathematicaElementTypes.COMMENT_ANNOTATION; }
231231
{CommentEnd} { yypopstate(); return MathematicaElementTypes.COMMENT_END; }

0 commit comments

Comments
 (0)