summaryrefslogtreecommitdiff
path: root/xmake/core/language/language.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-27 23:53:21 +0800
committerruki <[email protected]>2023-09-27 23:53:21 +0800
commit6ffb48dd54c6d2d4e6168fac56943481d58e29c4 (patch)
tree7a463c358d683d9a9ad047ed0e1a052c488ee8fa /xmake/core/language/language.lua
parentd53b673e631873b21b07665498a142cc31059c81 (diff)
add groups for interpreter
Diffstat (limited to 'xmake/core/language/language.lua')
-rw-r--r--xmake/core/language/language.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/language/language.lua b/xmake/core/language/language.lua
index 557839959..73045c933 100644
--- a/xmake/core/language/language.lua
+++ b/xmake/core/language/language.lua
@@ -370,17 +370,19 @@ function language.apis()
if not languages then
os.raise(errors)
end
- apis = {values = {}, paths = {}, custom = {}, dictionary = {}}
+ apis = {values = {}, groups = {}, paths = {}, custom = {}, dictionary = {}}
for name, instance in pairs(languages) do
local instance_apis = instance:get("apis")
if instance_apis then
table.join2(apis.values, table.wrap(instance_apis.values))
+ table.join2(apis.groups, table.wrap(instance_apis.groups))
table.join2(apis.paths, table.wrap(instance_apis.paths))
table.join2(apis.custom, table.wrap(instance_apis.custom))
table.join2(apis.dictionary, table.wrap(instance_apis.dictionary))
end
end
apis.values = table.unique(apis.values)
+ apis.groups = table.unique(apis.groups)
apis.paths = table.unique(apis.paths)
apis.custom = table.unique(apis.custom)
language._APIS = apis