summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-24 10:42:55 +0800
committerOpportunityLiu <[email protected]>2019-07-24 10:42:55 +0800
commitb1a47544b8f60c12541b8b5a0f4383639d348af3 (patch)
treeea52bf2d354a9d04405ef1fadf1d45b82f5a90af /xmake/core/base/interpreter.lua
parentae7d6509749944564b939bd36cf6ab895dcff0af (diff)
fix typo
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 89dd7d5c1..fe401f262 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -87,7 +87,7 @@ function interpreter._merge_root_scope(root, root_prev, override)
root_prev = root_prev or {}
for scope_kind_and_name, _ in pairs(root or {}) do
-- only merge sub-scope for each kind("target@@xxxx") or __rootkind
- -- we need ignore the sub-root scope .e.g target{} after fetching root scope
+ -- we need ignore the sub-root scope e.g. target{} after fetching root scope
--
if scope_kind_and_name:find("@@", 1, true) or scope_kind_and_name == "__rootkind" then
local scope_values = root_prev[scope_kind_and_name] or {}
@@ -142,10 +142,10 @@ function interpreter._fetch_root_scope(root)
end
end
--- save api source info, .e.g call api() in sourcefile:linenumber
+-- save api source info, e.g. call api() in sourcefile:linenumber
function interpreter:_save_sourceinfo_to_scope(scope, apiname, values)
- -- save api source info, .e.g call api() in sourcefile:linenumber
+ -- save api source info, e.g. call api() in sourcefile:linenumber
local sourceinfo = debug.getinfo(3, "Sl")
if sourceinfo then
scope["__sourceinfo_" .. apiname] = scope["__sourceinfo_" .. apiname] or {}
@@ -260,7 +260,7 @@ function interpreter:_api_register_xxx_values(scope_kind, action, apifunc, ...)
scope["__override_" .. apiname] = true
end
- -- save api source info, .e.g call api() in sourcefile:linenumber
+ -- save api source info, e.g. call api() in sourcefile:linenumber
self:_save_sourceinfo_to_scope(scope, apiname, {...})
-- call function
@@ -959,7 +959,7 @@ function interpreter:api_register_scope(...)
-- with scope info? translate it
--
- -- .e.g
+ -- e.g.
-- option("text", {showmenu = true, default = true, description = "test option"})
-- target("tbox", {kind = "static", files = {"src/*.c", "*.cpp"}})
--
@@ -1274,7 +1274,7 @@ function interpreter:api_register_set_pathes(scope_kind, ...)
end
end
- -- save api source info, .e.g call api() in sourcefile:linenumber
+ -- save api source info, e.g. call api() in sourcefile:linenumber
self:_save_sourceinfo_to_scope(scope, name, pathes)
end
@@ -1304,7 +1304,7 @@ function interpreter:api_register_del_pathes(scope_kind, ...)
-- save values
scope[name] = table.join2(scope[name] or {}, pathes_deleted)
- -- save api source info, .e.g call api() in sourcefile:linenumber
+ -- save api source info, e.g. call api() in sourcefile:linenumber
self:_save_sourceinfo_to_scope(scope, name, pathes)
end
@@ -1345,7 +1345,7 @@ function interpreter:api_register_add_pathes(scope_kind, ...)
end
end
- -- save api source info, .e.g call api() in sourcefile:linenumber
+ -- save api source info, e.g. call api() in sourcefile:linenumber
self:_save_sourceinfo_to_scope(scope, name, pathes)
end