summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2014-03-02 17:17:28 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2018-12-02 21:09:42 +0100
commitb53f1b8abb4121cd87d88619e055175ce6cc3b7e (patch)
treed6459b8340a434f16c9e167306bcd682eb82fdfe /src
parentd679fd99c95c70576b6c5db548aa34957446a650 (diff)
downloadcontext-rst-b53f1b8abb4121cd87d88619e055175ce6cc3b7e.tar.gz
remove non-conformant bullet recognition rule
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"