From 616002f1a66d204a089b04f14d90ced851ffcb1c Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Fri, 9 Mar 2018 21:45:39 -0500 Subject: [PATCH] fixed bug in string literals --- lex_cpp.mll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lex_cpp.mll b/lex_cpp.mll index 0c13ebd..a2ffc46 100644 --- a/lex_cpp.mll +++ b/lex_cpp.mll @@ -13,7 +13,7 @@ let istyle = ['u' 'U' 'l' 'L'] let ln_cmt = "//" [^ '\n']* let character = "'" ([^'\\' '\''] | '\\' _) "'" -let string = '"' ([^'\\' '"'] | '\\' _)* ['"' '\n'] +let string = '"' ([^'\\' '"' '\n'] | '\\' _)* '"' let identifier = alpha_ alnum_* let preprocess = "#" [' ' '\t']* alpha_+ let sys_incl = (' '|'\t')* '<' [^ '\n' '>']* '>' -- 2.51.0