From 78d44502d0e4dc5179b703189da54bc3dfe0d306 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 4 May 2011 17:44:12 +0200 Subject: confirming to Lua module namespace; alternate code from Wolfgang (resting for now) --- mod/tex/context/third/rst/rst_context.lua | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'mod/tex/context/third/rst/rst_context.lua') diff --git a/mod/tex/context/third/rst/rst_context.lua b/mod/tex/context/third/rst/rst_context.lua index 846b507..5d35906 100644 --- a/mod/tex/context/third/rst/rst_context.lua +++ b/mod/tex/context/third/rst/rst_context.lua @@ -1,10 +1,9 @@ #!/usr/bin/env texlua -------------------------------------------------------------------------------- -- FILE: rst_context.lua --- USAGE: ./rst_context.lua +-- USAGE: called by rst_parser.lua -- AUTHOR: Philipp Gesang (Phg), --- VERSION: 1.0 --- CREATED: 31/08/10 19:35:15 CEST +-- CREATED: 2011-05-04 17:42:04+0200 -------------------------------------------------------------------------------- -- --- TODO @@ -15,12 +14,8 @@ -- good. ---local helpers -if not context then - require "lpeg" - helpers = require "rst_helpers" - rst_directives = require "rst_directives" -end +local helpers = helpers or thirddata and thirddata.rst_helpers +local rst_directives = rst_directives or thirddata and thirddata.rst_directives local utf = unicode.utf8 -- cgit v1.2.3