diff --git a/core/grammar/klexer4.mll b/core/grammar/klexer4.mll index e58900022..bd31ef53e 100644 --- a/core/grammar/klexer4.mll +++ b/core/grammar/klexer4.mll @@ -68,7 +68,7 @@ rule token = parse | integer as n { INT (int_of_string n) } | real as f { FLOAT (float_of_string f) } | '\'' ([^'\n' '\'']+ as x) '\''{ LABEL(x) } - | '\"' ([^'\n' '\"']+ as x) '\"'{ STRING(x) } + | '\"' ([^'\n' '\"']* as x) '\"'{ STRING(x) } | '\'' ([^'\n' '\'']+ as s) (eof | '\n') { raise (ExceptionDefn.Syntax_Error ("Unterminated label: "^s,