summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rst_parser.lua12
1 files changed, 8 insertions, 4 deletions
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"