Commits

Jason McKesson  committed b8c004e

Lua 5.2 fixes. Should take care of issue #7.

  • Participants
  • Parent commits 7a4fa51

Comments (0)

Files changed (3)

File modules/CommonStyle.lua

 
 --Creates a tabbed file.
 function common.CreateFile(filename, indent)
-	local hFile = io.open(filename, "wt")
+	local hFile = io.open(filename, "w")
 	return TabbedFile.TabbedFile(hFile, indent)
 end
 

File modules/GetOptions.lua

 	if(baseDir) then
 		extfilename = baseDir .. extfilename
 	end
-	local hFile = assert(io.open(extfilename, "rt"), "Could not find the file " .. extfilename)
+	local hFile = assert(io.open(extfilename, "r"), "Could not find the file " .. extfilename)
 	
 	for line in hFile:lines() do
 		for _, test in ipairs(extFileLines) do

File modules/LoadLuaSpec.lua

 	
 		if(func.version) then
 			if(not func.category or string.match(func.category, "^VERSION")) then
-				local versionVal = string.gsub(func.category, "VERSION_(%d+)_(%d+).*", "%1%.%2");
+				local versionVal = string.gsub(func.category, "VERSION_(%d+)_(%d+).*", "%1.%2");
 				--HACK!
 				if(versionVal == "1.0") then versionVal = "1.1" end;
 				table.insert(GetCore(versionVal).funcs, func);