diff options
Diffstat (limited to 'mod/tex/context/third/rst')
-rw-r--r-- | mod/tex/context/third/rst/t-rst.mkiv | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/mod/tex/context/third/rst/t-rst.mkiv b/mod/tex/context/third/rst/t-rst.mkiv index a64a0d1..a332df9 100644 --- a/mod/tex/context/third/rst/t-rst.mkiv +++ b/mod/tex/context/third/rst/t-rst.mkiv @@ -33,13 +33,20 @@ %D Loading the reStructuredText parser. \ctxloadluafile{rst_parser} -\def\RST_enable_verbose{% - \doif{\RSTparameter{debug}}\v!yes\ctxlua{thirddata.rst_helpers.rst_debug = true}% -} -\appendtoks \RST_enable_verbose \to \everysetupRST +\startmoduletestsection + \ctxlua{thirddata.rst_helpers.rst_debug = true} +\stopmoduletestsection + +%%% Leaving this here in case we need to revert to locally +%%% toggling debugging code. + +%\def\RST_enable_verbose{% + %\doif{\RSTparameter{debug}}\v!yes\ctxlua{thirddata.rst_helpers.rst_debug = true}% +%} +%\appendtoks \RST_enable_verbose \to \everysetupRST %D Setting some globals. -\setupRST [debug=no] +%\setupRST [debug=no] %D This command loads and processes the \type{*.rst} file. \def\typesetRSTfile#1{\ctxlua{thirddata.rst.do_rst_file("#1")}} @@ -48,22 +55,22 @@ %D except for grouping, escaping and cs arguments. \newcatcodetable \RST_catcodes \startcatcodetable \RST_catcodes - \catcode`\^^I = 12 % ascii tab is a blank space - \catcode`\^^M = 12 % ascii return is end-line - \catcode`\^^L = 12 % ascii form-feed - \catcode`\ = 12 - \catcode`\^^Z = 12 - \catcode`\\ = 0 - \catcode`\% = 12 - \catcode`\# = 6 - \catcode`\_ = 12 - \catcode`\^ = 12 - \catcode`\& = 12 - \catcode`\| = 12 - \catcode`\{ = 1 - \catcode`\} = 2 - \catcode`\~ = 12 - \catcode`\$ = 12 + \catcode`\^^I = 12 + \catcode`\^^M = 12 + \catcode`\^^L = 12 + \catcode`\ = 12 + \catcode`\^^Z = 12 + \catcode`\\ = 0 + \catcode`\% = 12 + \catcode`\# = 6 + \catcode`\_ = 12 + \catcode`\^ = 12 + \catcode`\& = 12 + \catcode`\| = 12 + \catcode`\{ = 1 + \catcode`\} = 2 + \catcode`\~ = 12 + \catcode`\$ = 12 \stopcatcodetable %D The environment \type{\[start|stop]RST} and the macro |