From eb61b9fee9da56950cd05b7b5374f481a525276d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 3 Jun 2013 19:15:49 +0200 Subject: fix premature escaping of brackets --- mod/tex/context/third/rst/rst_context.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'mod/tex/context') diff --git a/mod/tex/context/third/rst/rst_context.lua b/mod/tex/context/third/rst/rst_context.lua index 69c0da1..b9b9e58 100644 --- a/mod/tex/context/third/rst/rst_context.lua +++ b/mod/tex/context/third/rst/rst_context.lua @@ -469,7 +469,7 @@ local inline_parser = P{ + V"bareia" + V"asterisk" + V"bar" - + V"lsquare" + V"rsquare" + + V"lbrack" + V"rbrack" , -- inline markup asterisk = P"*", quote_single = P"'", @@ -501,16 +501,16 @@ local inline_parser = P{ lparenthesis = P"(", rparenthesis = P")", - lsquare = P"[" / [[{\\string[}]], - rsquare = P"]" / [[{\\string]}]], + lbrack = P"[", + rbrack = P"]", lbrace = P"{" / [[{\\letterleftbrace}]], rbrace = P"}" / [[{\\letterrightbrace}]], less = P"<", greater = P">", - leftpar = V"lparenthesis" + V"lsquare" + V"lbrace" + V"less", - rightpar = V"rparenthesis" + V"rsquare" + V"rbrace" + V"greater", + leftpar = V"lparenthesis" + V"lbrack" + V"lbrace" + V"less", + rightpar = V"rparenthesis" + V"rbrack" + V"rbrace" + V"greater", - normal_char = V"lbrace" + V"rbrace" + V"lsquare" + V"rsquare" -- escape those if in input + normal_char = V"lbrace" + V"rbrace" + V"lbrack" + V"rbrack" -- escape those if in input + 1 , @@ -602,9 +602,9 @@ local inline_parser = P{ * V"bareia" * V"underscore" , - footnote_reference = V"lsquare" + footnote_reference = V"lbrack" * Cs(V"footnote_label" + V"citation_reference_label") - * V"rsquare" + * V"rbrack" * V"underscore" / rst_context.footnote_reference , @@ -615,7 +615,7 @@ local inline_parser = P{ + V"asterisk" , - citation_reference_label = V"letter" * (1 - V"rsquare")^1, + citation_reference_label = V"letter" * (1 - V"rbrack")^1, inline_internal_target = V"underscore" * V"bareia" -- cgit v1.2.3