Skip to content

Commit a72a341

Browse files
committed
Highlight pass.
1 parent 01b6587 commit a72a341

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

semantic-analysis/src/Analysis/Analysis/Exception.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ exceptionsForLine l e = Set.filter (\ ex -> IntSet.member l (exceptionLines ex))
106106

107107
printExcSet :: Source.Source -> ExcSet -> IO ()
108108
printExcSet src e = for_ (zip [0..] (Source.lines src)) $ \ (i, line) -> do
109-
Text.putStr (def (import' (raise (Text.dropWhileEnd (== '\n') (Source.toText line)))))
109+
Text.putStr (pass (def (import' (raise (Text.dropWhileEnd (== '\n') (Source.toText line))))))
110110
let es = exceptionsForLine i e
111111
fvs = freeVariablesForLine i e
112112
unless (null es && null fvs) $ do
@@ -120,6 +120,7 @@ printExcSet src e = for_ (zip [0..] (Source.lines src)) $ \ (i, line) -> do
120120
raise = keyword (Text.pack "raise")
121121
import' = keyword (Text.pack "import")
122122
def = keyword (Text.pack "def")
123+
pass = keyword (Text.pack "pass")
123124
union = Text.intercalate (Text.pack ", ")
124125
formatFreeVariables fvs = map (\ fv -> Text.pack "?" <> formatName (freeVariableName fv)) (Set.toList fvs)
125126
formatExceptions excs = map (Text.pack . show . formatName . exceptionName) (Set.toList excs)

0 commit comments

Comments
 (0)