diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2013-06-03 19:15:49 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2013-06-03 19:15:49 +0200 |
commit | eb61b9fee9da56950cd05b7b5374f481a525276d (patch) | |
tree | 166522a6089d59ba9b90ac329f18a2a2d9d09b0d /mod | |
parent | d6fdc881c4460729e848435eccf17cf38e6f29eb (diff) | |
download | context-rst-eb61b9fee9da56950cd05b7b5374f481a525276d.tar.gz |
fix premature escaping of brackets
Diffstat (limited to 'mod')
-rw-r--r-- | mod/tex/context/third/rst/rst_context.lua | 18 |
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 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" |