summaryrefslogtreecommitdiff
path: root/mod/tex/context/third/rst/rst_parser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mod/tex/context/third/rst/rst_parser.lua')
-rw-r--r--mod/tex/context/third/rst/rst_parser.lua15
1 files changed, 8 insertions, 7 deletions
diff --git a/mod/tex/context/third/rst/rst_parser.lua b/mod/tex/context/third/rst/rst_parser.lua
index ec9366e..2aafbf5 100644
--- a/mod/tex/context/third/rst/rst_parser.lua
+++ b/mod/tex/context/third/rst/rst_parser.lua
@@ -10,13 +10,13 @@
--
local rst
-local helpers = {}
local optional_setups
+thirddata = thirddata or { }
+thirddata.rst = { }
+thirddata.rst_helpers = { }
+local helpers = thirddata.rst_helpers
if context then
- thirddata = thirddata or { }
- thirddata.rst = { }
- thirddata.rst_helpers = helpers
--thirddata.rst_setups = optional_setups
environment.loadluafile("rst_helpers")
@@ -27,10 +27,11 @@ if context then
rst = rst_context
optional_setups = thirddata.rst_setups
else
- rst = require "rst_context"
- helpers = require "rst_helpers"
- optional_setups = require "rst_setups"
+ --helpers = require "rst_helpers"
+ require "rst_helpers"
rst_directives = require "rst_directives"
+ optional_setups = require "rst_setups"
+ rst = require "rst_context"
end
helpers.rst_debug = false