parseDTFLine :: [DictElem] -> Parser DTF
parseDTFLine dict = foldl1 (<|>) (fmap (\x -> try (x dict)) lineFormats) <* char '\n'
-lineFormats = [lf_define, lf_sdata, lf_stext, lf_org, lf_data, lf_ifill, lf_ascii, lf_comment, lf_toparse, lf_label]
+lineFormats = [lf_define, lf_sdata, lf_stext, lf_org, lf_data, lf_ifill, lf_ascii, lf_comment, lf_toparse, lf_label, lf_nothing]
-- helper
parseIdent :: Parser String
comment <- parseComment
return $ DTF_Comment comment
+lf_nothing _ = do
+ wtf <- parseMySpaces
+ return $ DTF_Comment wtf
+
lf_label _ = do
l <- parseLabel
comment <- try(parseComment) <|> parseMySpaces