Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliamDevine <unknown>2011-04-30 01:56:36 +0400
committerliamDevine <unknown>2011-04-30 01:56:36 +0400
commit5c015131c8c89c9bc89ffe64bb0402dadea2c42e (patch)
treeb7e89ab2576ef09c0a13343df80b18e8d6c93f64
parenta0fa8c04e03961b509bb5cbe5607d741568d8c1d (diff)
kind is a function in _G. Changed function 'merge' to use the string 'kind' instead of the function for the table key.
-rw-r--r--src/base/configs.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/configs.lua b/src/base/configs.lua
index 1cebd8b..6be0de1 100644
--- a/src/base/configs.lua
+++ b/src/base/configs.lua
@@ -240,7 +240,7 @@
-- add `kind` to the filter terms
if (cfg.kind) then
- terms[kind]=cfg.kind:lower()
+ terms['kind']=cfg.kind:lower()
end
-- now add in any blocks that match the filter terms
@@ -248,8 +248,8 @@
if (premake.iskeywordsmatch(blk.keywords, terms))then
mergeobject(cfg, blk)
if (cfg.kind and not cfg.terms.kind) then
- cfg.terms[kind] = cfg.kind:lower()
- terms[kind] = cfg.kind:lower()
+ cfg.terms['kind'] = cfg.kind:lower()
+ terms['kind'] = cfg.kind:lower()
end
end
end