Remove the special handling of error/undefined
"Fix" module header handling

Fix in a sense that various #pragmas work inside the export list now,
but I can't be bothered to do this properly
Fix "toplevel" definition regex
Fix record definitions highlight