[ fix ] Fix issue parsing __LOC__ arguments

This commit is contained in:
Steve Dunham 2023-05-13 13:59:12 -07:00 committed by G. Allais
parent 7221c99e93
commit edc000c568
3 changed files with 4 additions and 1 deletions

View File

@ -220,7 +220,6 @@ mutual
<|> lazy fname indents
<|> if_ fname indents
<|> with_ fname indents
<|> debugString fname
<|> do b <- bounds (MkPair <$> simpleExpr fname indents <*> many (argExpr q fname indents))
(f, args) <- pure b.val
pure (applyExpImp (start b) (end b) f (concat args))
@ -530,6 +529,7 @@ mutual
pure $ case projs of
[] => root
_ => PPostfixApp (boundToFC fname b) root projs
<|> debugString fname
<|> do b <- bounds (forget <$> some (bounds postfixProj))
pure $ let projs = map (\ proj => (boundToFC fname proj, proj.val)) b.val in
PPostfixAppPartial (boundToFC fname b) projs

View File

@ -17,3 +17,5 @@ main = do
__LOC__}
"""
putStrLn __FILE__

View File

@ -3,3 +3,4 @@ file: DebugInfo
line: 7
col: 24
loc further down the file: File DebugInfo, line 17, characters 11-18
DebugInfo