Skip to content

Commit

Permalink
fix unmatched nested comment edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
dxu committed Apr 24, 2016
1 parent 787d227 commit 3e562cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reason_lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ and comment = parse
let loc = Location.curr lexbuf in
raise (Error (Unmatched_nested_comment loc, start_loc))
(* a multiline comment nested within a line comment *)
| (_, Some _) ->
comment_start_loc := [];
| (_ :: l, Some _) ->
comment_start_loc := l;
store_lexeme lexbuf;
comment lexbuf;
}
Expand Down

0 comments on commit 3e562cd

Please sign in to comment.