summaryrefslogtreecommitdiff
path: root/mod/tex/context/third/rst
diff options
context:
space:
mode:
Diffstat (limited to 'mod/tex/context/third/rst')
-rw-r--r--mod/tex/context/third/rst/rst_context.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/tex/context/third/rst/rst_context.lua b/mod/tex/context/third/rst/rst_context.lua
index adc2c64..6a5aa05 100644
--- a/mod/tex/context/third/rst/rst_context.lua
+++ b/mod/tex/context/third/rst/rst_context.lua
@@ -551,11 +551,12 @@ local inline_parser = P{
* V"double_bareia"
/ rst_context.literal,
+ interpreted_single_char = (1 - V"spacing" - V"eol" - V"bareia") * #V"bareia",
+ interpreted_multi_char = (1 - V"spacing" - V"eol" - V"bareia") * (1 - (1 * V"bareia"))^0 * (1 - V"spacing" - V"eol" - V"bareia"),
+
interpreted_text = C(V"role_marker"^-1)
* (V"bareia" - V"double_bareia")
- * C ((1 - V"spacing" - V"eol" - V"bareia")
- * ((1 - (1 * V"bareia"))^0
- * (1 - V"spacing" - V"eol" - V"bareia"))^-1)
+ * C(V"interpreted_single_char" + V"interpreted_multi_char")
* V"bareia"
* C(V"role_marker"^-1)
/ rst_context.interpreted_text,