Skip to content

Commit

Permalink
Fix 204_InternalToken
Browse files Browse the repository at this point in the history
  • Loading branch information
gdziadkiewicz authored and andreasabel committed Mar 3, 2022
1 parent f51bb81 commit ca01da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/BNFC/Backend/FSharp/CFtoFsLex.hs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ rules cf = mkRule "token" $
, "|> Option.defaultValue (TOK_" <> t <+> arg "l)"
]
where
arg l | pos = text $ "((lexeme_start lexbuf, lexeme_end lexbuf), " ++ l ++ ")"
arg l | pos = text $ "((lexbuf.StartPos.AbsoluteOffset, lexbuf.EndPos.AbsoluteOffset), " ++ l ++ ")"
| otherwise = text l

-------------------------------------------------------------------
Expand Down

0 comments on commit ca01da8

Please sign in to comment.