summaryrefslogtreecommitdiff
path: root/rst_parser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rst_parser.lua')
-rw-r--r--rst_parser.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/rst_parser.lua b/rst_parser.lua
index 343b45c..768f689 100644
--- a/rst_parser.lua
+++ b/rst_parser.lua
@@ -203,8 +203,8 @@ local parser = P{
+ Cs(V"section") / rst.escape
+ Cs(V"transition") --/ rst.escape
+ V"literal_block"
- + Cs(V"list") / rst.escape
+ Cs(V"block_quote") / rst.escape
+ + Cs(V"list") / rst.escape
+ Cs(V"paragraph") / rst.escape
,
@@ -772,13 +772,13 @@ local parser = P{
-- Sectioning
--------------------------------------------------------------------------------
- section_adorn = C(V"adornment_char"^1) * V"eol",
+ section_adorn = C(V"adornment_char"^1) * V"space"^0 * V"eol",
-- The whitespace handling after the overline is necessary because headings
-- without overline aren't allowed to be indented.
- section = V"eol"^0
+ section = V"blank_line"^0
* (V"section_adorn" * V"whitespace"^0)^-1
- * C((1 - V"whitespace") * (1 - V"eol" - V"adornment_char")^1)
+ * C((1 - V"whitespace") * (1 - V"eol")^1)
* V"eol"
* V"section_adorn"
* V"eol"^-1
@@ -1110,7 +1110,7 @@ local parser = P{
table_header_hline = P"=",
}
-f = io.open("table.rst", "r")
+f = io.open("inlinefmt.rst", "r")
testdata = f:read("*all")
f:close()