File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,8 @@ line = (anyChar `manyTill` newline) <?> "rest of line"
390390whitespacechar = oneOf " \t "
391391whitespace = many whitespacechar
392392whitespaceline = try (newline >> return " " ) <|> try (whitespacechar >> whitespacechar `manyTill` newlineoreof)
393- commentline = try (whitespace >> char ' #' >> lineoreof) <?> " comments"
393+ -- a line beginning with optional whitespace and #, or beginning with one or more * (an org node)
394+ commentline = try ((many1 (char ' *' ) <|> (whitespace >> many1 (char ' #' ))) >> lineoreof) <?> " comments"
394395whitespaceorcommentline = commentline <|> whitespaceline
395396whitespaceorcommentlineoreof = choice [eofasstr, commentline, whitespaceline]
396397eofasstr = eof >> return " "
You can’t perform that action at this time.
0 commit comments