@@ -98,7 +98,8 @@ import System.IO
9898moduleHeader :: IdrisParser (Maybe (Docstring ()), [String], [(FC, OutputAnnotation)])
9999moduleHeader = try (do docs <- optional docComment
100100 noArgs docs
101− reserved "module"
101+ modFC <- reservedFC "module"
102+ highlightP modFC AnnKeyword
102103 (i, ifc) <- identifier
103104 option ';' (lchar ';')
104105 let modName = moduleName i
@@ -1430,6 +1431,7 @@ loadSource lidr f toline
14301431 sendHighlighting [(nfc, AnnNamespace ns srcFnAbs)])
14311432 [(re, fn, ns, nfc) | ImportInfo re fn _ ns _ nfc <- imports]
14321433 reportParserWarnings
1434+ sendParserHighlighting
14331435
14341436 -- process and check module aliases
14351437 let modAliases = M.fromList
@@ -1480,6 +1482,7 @@ loadSource lidr f toline
14801482 ibc_write ist
14811483 }
14821484 _ -> return ()
1485+ sendParserHighlighting
14831486
14841487 -- Parsing done, now process declarations
14851488