Skip to content

Commit

Permalink
fix how to convert here in the lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
gfngfn committed Mar 26, 2024
1 parent 230508f commit b1b303d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ rule lex_program stack = parse
| "end" -> END(pos)
| "false" -> FALSE(pos)
| "fun" -> FUN(pos)
| "here" -> HERE(pos, (Lexing.lexeme_start_p lexbuf).Lexing.pos_fname)
| "here" -> HERE(pos, Filename.dirname (Lexing.lexeme_start_p lexbuf).Lexing.pos_fname)
| "if" -> IF(pos)
| "in" -> IN(pos)
| "include" -> INCLUDE(pos)
Expand Down

0 comments on commit b1b303d

Please sign in to comment.