@@ -98,7 +98,8 @@ import System.IO
98moduleHeader :: IdrisParser (Maybe (Docstring ()), [String], [(FC, OutputAnnotation)])
98moduleHeader :: IdrisParser (Maybe (Docstring ()), [String], [(FC, OutputAnnotation)])
99moduleHeader = try (do docs <- optional docComment
99moduleHeader = try (do docs <- optional docComment
100 noArgs docs
100 noArgs docs
101− reserved "module"
101+ modFC <- reservedFC "module"
102+ highlightP modFC AnnKeyword
102 (i, ifc) <- identifier
103 (i, ifc) <- identifier
103 option ';' (lchar ';')
104 option ';' (lchar ';')
104 let modName = moduleName i
105 let modName = moduleName i
@@ -1430,6 +1431,7 @@ loadSource lidr f toline
1430 sendHighlighting [(nfc, AnnNamespace ns srcFnAbs)])
1431 sendHighlighting [(nfc, AnnNamespace ns srcFnAbs)])
1431 [(re, fn, ns, nfc) | ImportInfo re fn _ ns _ nfc <- imports]
1432 [(re, fn, ns, nfc) | ImportInfo re fn _ ns _ nfc <- imports]
1432 reportParserWarnings
1433 reportParserWarnings
1434+ sendParserHighlighting
1434 -- process and check module aliases
1436 -- process and check module aliases
1435 let modAliases = M.fromList
1437 let modAliases = M.fromList
@@ -1480,6 +1482,7 @@ loadSource lidr f toline
1480 ibc_write ist
1482 ibc_write ist
1482 _ -> return ()
1484 _ -> return ()
1485+ sendParserHighlighting
1484 -- Parsing done, now process declarations
1487 -- Parsing done, now process declarations