From b53f1b8abb4121cd87d88619e055175ce6cc3b7e Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 2 Mar 2014 17:17:28 +0100 Subject: remove non-conformant bullet recognition rule --- src/rst_parser.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/rst_parser.lua b/src/rst_parser.lua index 2055e1b..1b0733d 100644 --- a/src/rst_parser.lua +++ b/src/rst_parser.lua @@ -1010,10 +1010,14 @@ local rst_parser = P { , bullet_expr = V"bullet_char" - + (P"(" * V"number_char" * P")") - + (V"number_char" * P")") - + (V"number_char" * V"dot") * #V"space" - + (V"number_char" * #V"space") + + (P"(" * V"number_char" * P")") --- surrounded by parentheses + + (V"number_char" * P")") --- suffixed with right parenthesis + + (V"number_char" * V"dot") * #V"space" --- suffixed with period + --[[-- + below rule is invalid according to the spec: + http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#enumerated-lists + --]]-- + --+ (V"number_char" * #V"space") , number_char = V"roman_numeral" -- cgit v1.2.3