From 4df104a855a89db498ea94399d8f441deb361018 Mon Sep 17 00:00:00 2001 From: Benjamin Gray Date: Mon, 29 Oct 2018 11:44:27 +1100 Subject: [PATCH 1/2] Fix comment bug --- src/scanner.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/scanner.cc b/src/scanner.cc index 99f1b71..4ea02a6 100644 --- a/src/scanner.cc +++ b/src/scanner.cc @@ -108,7 +108,6 @@ struct Scanner { lexer->mark_end(lexer); return true; } - break; default: dashes = 0; } From 2f31047048307005bd94f7d85dd077e49c398282 Mon Sep 17 00:00:00 2001 From: Benjamin Gray Date: Mon, 29 Oct 2018 11:56:39 +1100 Subject: [PATCH 2/2] Add tests for weird comment ends --- corpus/main.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/corpus/main.txt b/corpus/main.txt index 10ad92c..777b5ce 100644 --- a/corpus/main.txt +++ b/corpus/main.txt @@ -114,12 +114,14 @@ Custom tags Comments ================================== +
--- (fragment + (comment) (comment) (text) (element