mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 10:21:39 +03:00
Fix record dot syntax parser.
This commit is contained in:
parent
ca1ef8a882
commit
4b986e8b61
@ -314,7 +314,7 @@ mutual
|
|||||||
simpleExpr fname indents =
|
simpleExpr fname indents =
|
||||||
do
|
do
|
||||||
start <- location
|
start <- location
|
||||||
recFields <- many recField
|
recFields <- some recField
|
||||||
end <- location
|
end <- location
|
||||||
pure $ PRecordProjection (MkFC fname start end) recFields
|
pure $ PRecordProjection (MkFC fname start end) recFields
|
||||||
<|> do
|
<|> do
|
||||||
@ -322,7 +322,7 @@ mutual
|
|||||||
root <- simplerExpr fname indents
|
root <- simplerExpr fname indents
|
||||||
recFields <- many recField
|
recFields <- many recField
|
||||||
end <- location
|
end <- location
|
||||||
case recFields of
|
pure $ case recFields of
|
||||||
[] => root
|
[] => root
|
||||||
fs => PRecordFieldAccess (MkFC fname start end) root recFields
|
fs => PRecordFieldAccess (MkFC fname start end) root recFields
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user