Skip to content

Commit f98bb39

Browse files
Ohad Kammargallais
authored andcommitted
Bugfix highlighting of let declarations
1 parent ac4b31b commit f98bb39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Idris/Parser.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ mutual
663663
letBinder : Rule LetBinder
664664
letBinder = do s <- bounds (MkPair <$> multiplicity fname <*> expr plhs fname indents)
665665
(rig, pat) <- pure s.val
666-
ty <- option (PImplicit (boundToFC fname s))
666+
ty <- option (PImplicit (virtualiseFC $ boundToFC fname s))
667667
(decoratedSymbol fname ":" *> typeExpr (pnoeq pdef) fname indents)
668668
(decoratedSymbol fname "=" <|> decoratedSymbol fname ":=")
669669
val <- expr pnowith fname indents

src/Idris/Parser/Let.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ mkLets fname = letFactory buildLets
6464
buildLets [] sc = sc
6565
buildLets (b :: rest) sc
6666
= let (MkLetBinder rig pat ty val alts) = b.val
67-
fc = boundToFC fname b
67+
fc = virtualiseFC $ boundToFC fname b
6868
in PLet fc rig pat ty val (buildLets rest sc) alts
6969

7070
export

0 commit comments

Comments
 (0)