aboutsummaryrefslogtreecommitdiffstats
path: root/src/asciideck_parser.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/asciideck_parser.erl')
-rw-r--r--src/asciideck_parser.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/asciideck_parser.erl b/src/asciideck_parser.erl
index f7a61d7..a75e99f 100644
--- a/src/asciideck_parser.erl
+++ b/src/asciideck_parser.erl
@@ -229,6 +229,10 @@ p1_p([{_, <<>>}|Tail], AST0, St, LN, [_|Acc]) ->
AST ->
p1(Tail, [paragraph(Text, #{}, ann(LN, St))|AST], St)
end;
+%% Ignore comments inside paragraphs.
+%% @todo Keep in the AST.
+p1_p([{_, <<"//", _/bits>>}|Tail], AST, St, LN, Acc) ->
+ p1_p(Tail, AST, St, LN, Acc);
p1_p([{_, Line}|Tail], AST, St, LN, Acc) ->
%% @todo We need to keep line/col information. To do this
%% we probably should keep an index of character number -> line/col