From 37c2c493003c6eccaff0b4ebfc937f5e964e0084 Mon Sep 17 00:00:00 2001 From: TsT Date: Wed, 27 Apr 2016 13:55:10 +0200 Subject: [PATCH 1/3] typo fix Currenty the `doc = doc` is equal to `doc = nil`. The "doc" directory is used because it's the internal LDoc default. --- config.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.ld b/config.ld index 1f27ff3..076205d 100644 --- a/config.ld +++ b/config.ld @@ -5,7 +5,7 @@ backtick_references = true format = 'discount' title = "tiny-ecs API" one = true -dir = doc +dir = "doc" style = '!fixed' package = 'tiny-ecs' not_luadoc = true From ee192d94afcb4759273a68f72be32818a1c6d7db Mon Sep 17 00:00:00 2001 From: bakpakin Date: Thu, 19 May 2016 17:50:54 +0800 Subject: [PATCH 2/3] Add init.lua for easy require if used as a submodule. --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 init.lua diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..07250f8 --- /dev/null +++ b/init.lua @@ -0,0 +1,5 @@ +-- Helper Lua file for easy require if tiny-ecs is used as a git submodule or +-- folder. Not needed in many cases, including luarocks distribution. + +local directory = (...):match("(.-)[^%.]+$") +return require(directory .. 'tiny') From 0488bff1d9d8ec3b2535ea2a6d9fa8ce3d24310e Mon Sep 17 00:00:00 2001 From: bakpakin Date: Thu, 19 May 2016 18:18:39 +0800 Subject: [PATCH 3/3] Fix slightly incorrect pattern for matching filters (only matters on incorrect filters). --- tiny.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny.lua b/tiny.lua index 9f6e23c..f99dff5 100644 --- a/tiny.lua +++ b/tiny.lua @@ -136,7 +136,7 @@ do subParts[#subParts + 1] = buildPart(p:sub(2, -2)) return ('\255%d'):format(#subParts) end) - for invert, part, sep in str:gmatch('(%!?)([^%|%&%!]+)([%|%&%!]?)') do + for invert, part, sep in str:gmatch('(%!?)([^%|%&%!]+)([%|%&]?)') do if part:match('^\255%d+$') then local partIndex = tonumber(part:match(part:sub(2))) accum[#accum + 1] = ('%s(%s)'):format(invert == '' and '' or 'not', subParts[partIndex])