From edd4a6b35ede63e81c9d1ab90d94813bd93f2fa1 Mon Sep 17 00:00:00 2001 From: steve donovan Date: Wed, 29 Feb 2012 19:20:57 +0200 Subject: [PATCH] Lua 5.2 compatibility changes - now working fine so far --- ldoc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldoc.lua b/ldoc.lua index 3f75139..11794d9 100644 --- a/ldoc.lua +++ b/ldoc.lua @@ -51,7 +51,7 @@ ldoc, a documentation generator for Lua, vs 1.1.0 `ldoc -c path/to/myconfig.ld .` reads options from `path/to/myconfig.ld` ]] local args = lapp(usage) - +local lfs = require 'lfs' local doc = require 'ldoc.doc' local lang = require 'ldoc.lang' local tools = require 'ldoc.tools' @@ -270,7 +270,7 @@ local function setup_package_base() args.package = source_dir elseif args.package == '..' then args.package = path.splitpath(source_dir) - elseif not args.package:find '[\//]' then + elseif not args.package:find '[\\/]' then local subdir,dir = path.splitpath(source_dir) if dir == args.package then args.package = subdir