summaryrefslogtreecommitdiff
path: root/mod/tex/context/third/rst/rst_directives.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-05-04 17:44:12 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-05-04 17:44:12 +0200
commit78d44502d0e4dc5179b703189da54bc3dfe0d306 (patch)
treea0a38ee12ea1c650e4114fa3903686f5815031e0 /mod/tex/context/third/rst/rst_directives.lua
parent4dc6e76f8cbd29c762d93b05a8b32541a16890da (diff)
downloadcontext-rst-78d44502d0e4dc5179b703189da54bc3dfe0d306.tar.gz
confirming to Lua module namespace; alternate code from Wolfgang (resting for now)
Diffstat (limited to 'mod/tex/context/third/rst/rst_directives.lua')
-rw-r--r--mod/tex/context/third/rst/rst_directives.lua13
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/tex/context/third/rst/rst_directives.lua b/mod/tex/context/third/rst/rst_directives.lua
index 0d4b4e9..6af0ce4 100644
--- a/mod/tex/context/third/rst/rst_directives.lua
+++ b/mod/tex/context/third/rst/rst_directives.lua
@@ -1,18 +1,23 @@
#!/usr/bin/env texlua
--------------------------------------------------------------------------------
-- FILE: rst_directives.lua
--- USAGE: ./rst_directives.lua
+-- USAGE: called by rst_parser.lua
-- AUTHOR: Philipp Gesang (Phg), <megas.kapaneus@gmail.com>
--- VERSION: 1.0
--- CREATED: 22/09/10 20:26:40 CEST
+-- CREATED: 2011-05-04 17:43:02+0200
--------------------------------------------------------------------------------
--
+local helpers = helpers or thirddata and thirddata.rst_helpers
+
--------------------------------------------------------------------------------
-- Directives for use with |substitutions|
--------------------------------------------------------------------------------
-rst_directives = {}
+local rst_directives = { }
+if context then
+ thirddata.rst_directives = rst_directives
+end
+
rst_directives.anonymous = 0
rst_directives.images = {}
rst_directives.images.done = {}