Skip to content
Snippets Groups Projects
Commit 3d049928 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[Parsing] Fixes parsing of oneline ghost else

parent cdd6af0f
No related branches found
No related tags found
No related merge requests found
......@@ -847,7 +847,7 @@ and might_end_ghost_annot = parse
make_annot ~one_line:false initial lexbuf s }
| "" { Buffer.add_char buf !annot_char; annot_token lexbuf }
and annot_one_line = parse
| "ghost" "else" {
| "ghost" blank+ "else" {
if is_oneline_ghost () then E.parse_error "nested ghost code";
enter_oneline_ghost (); LGHOST_ELSE (currentLoc ())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment