Fix parsing for a corner case in ocamlyacc
A'"'" was misparsed (the ' was not associated with the A as it should be)master
parent
795f1bb37a
commit
28767a90ae
|
@ -1282,13 +1282,13 @@ loop:
|
|||
goto loop;
|
||||
}
|
||||
}
|
||||
if (isalpha(c) || c == '_' || c == '$')
|
||||
if (isalpha(c) || c == '_' || c == '$' || In_bitmap(caml_ident_start, c))
|
||||
{
|
||||
do
|
||||
{
|
||||
putc(c, f);
|
||||
c = *++cptr;
|
||||
} while (isalnum(c) || c == '_' || c == '$');
|
||||
} while (isalnum(c) || c == '_' || c == '$' || c == '\'' || In_bitmap(caml_ident_body, c));
|
||||
goto loop;
|
||||
}
|
||||
if (c == '}' && depth == 1) {
|
||||
|
|
Loading…
Reference in New Issue