summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-22 22:07:51 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-22 22:07:51 +0200
commitec7dbffb15a99faa6c366a049ed3fdf919a51aaf (patch)
treee6702dc14edcad69f2a1d1db7614b7fb7137ba0e /rst_context.lua
parent584c65e596bdc44bd5a9a4a3b6bd02847b48b981 (diff)
downloadcontext-rst-ec7dbffb15a99faa6c366a049ed3fdf919a51aaf.tar.gz
fixed literal blocks
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/rst_context.lua b/rst_context.lua
index 77e0966..f41fd6a 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -245,7 +245,7 @@ local corresponding = {
local inline_parser = P{
[1] = "block",
- block = Cs(V"inline_as_first"^-1 * (V"enclosed" + V"inline_element" + 1)^1),
+ block = Cs(V"inline_as_first"^-1 * (V"except" + V"inline_element" + 1)^1),
inline_element = V"precede_inline"
* Cs(V"inline_do_elements")
@@ -257,6 +257,10 @@ local inline_parser = P{
-- formatted.
inline_as_first = V"inline_do_elements" * V"succede_inline",
+ except = P"\\starttyping" * (1 - P"\\stoptyping")^1 * P"\\stoptyping"
+ + V"enclosed"
+ ,
+
inline_do_elements = V"strong_emphasis"
+ V"substitution_reference"
+ V"anon_reference"