summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <gesang@stud.uni-heidelberg.de>2012-04-03 00:20:43 +0200
committerPhilipp Gesang <gesang@stud.uni-heidelberg.de>2012-04-03 00:20:43 +0200
commit5d96fd5b382aad74ec262b9d18719d8b31e215d9 (patch)
treee1d39e0e922aff8aa788c9b94491a71e96cb7ebd
parentbf71f70b10ff6b472f78c88372b62b8659845e9a (diff)
downloadcontext-rst-5d96fd5b382aad74ec262b9d18719d8b31e215d9.tar.gz
escape {braces,brackets} in further markup elements
-rw-r--r--mod/tex/context/third/rst/rst_context.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/mod/tex/context/third/rst/rst_context.lua b/mod/tex/context/third/rst/rst_context.lua
index 03216d4..823bd9b 100644
--- a/mod/tex/context/third/rst/rst_context.lua
+++ b/mod/tex/context/third/rst/rst_context.lua
@@ -535,28 +535,28 @@ local inline_parser = P{
,
emphasis = (V"asterisk" - V"double_asterisk")
- * Cs((1 - V"spacing" - V"eol" - V"asterisk")
- * ((1 - (1 * V"asterisk"))^0
- * (1 - V"spacing" - V"eol" - V"asterisk"))^-1)
+ * Cs((V"normal_char" - V"spacing" - V"eol" - V"asterisk")
+ * ((V"normal_char" - (V"normal_char" * V"asterisk"))^0
+ * (V"normal_char" - V"spacing" - V"eol" - V"asterisk"))^-1)
* V"asterisk"
/ rst_context.emphasis,
strong_emphasis = V"double_asterisk"
- * Cs((1 - V"spacing" - V"eol" - V"asterisk")
- * ((1 - (1 * V"double_asterisk"))^0
- * (1 - V"spacing" - V"eol" - V"asterisk"))^-1)
+ * Cs((V"normal_char" - V"spacing" - V"eol" - V"asterisk")
+ * ((V"normal_char" - (V"normal_char" * V"double_asterisk"))^0
+ * (V"normal_char" - V"spacing" - V"eol" - V"asterisk"))^-1)
* V"double_asterisk"
/ rst_context.strong_emphasis,
inline_literal = V"double_bareia"
* C ((V"escaped_bareia" - V"spacing" - V"eol" - V"bareia")
- * ((V"escaped_bareia" - (1 * V"double_bareia"))^0
+ * ((V"escaped_bareia" - (V"normal_char" * V"double_bareia"))^0
* (V"escaped_bareia" - V"spacing" - V"eol" - V"bareia"))^-1)
* 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_single_char = (V"normal_char" - V"spacing" - V"eol" - V"bareia") * #V"bareia",
+ interpreted_multi_char = (V"normal_char" - V"spacing" - V"eol" - V"bareia") * (V"normal_char" - (1 * V"bareia"))^0 * (1 - V"spacing" - V"eol" - V"bareia"),
interpreted_text = C(V"role_marker"^-1)
* (V"bareia" - V"double_bareia")