Skip to content

Commit

Permalink
fix #1353
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 authored and mn200 committed Nov 28, 2024
1 parent 998d07f commit a166853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/Holmake/HolParser.sml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ in
comdepth = ref 0, comstart = ref NONE, pardepth = ref 0, parseError = parseError})
val lookahead = ref NONE
fun go () =
case (case !lookahead of SOME tk => tk | NONE => lex ()) of
case (case !lookahead of SOME tk => (lookahead := NONE; tk) | NONE => lex ()) of
H.Decl (td, look) => (lookahead := look; TopDecl td)
| H.CloseParen p => (parseError (p, p + 1) ("unexpected ')'"); go ())
| H.EndTok _ => go ()
Expand Down

0 comments on commit a166853

Please sign in to comment.