diff options
| author | ruki <[email protected]> | 2017-05-11 21:04:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-11 21:04:06 +0800 |
| commit | 149d26d8fefd4d3dbba882131b926f4a852e336c (patch) | |
| tree | 15523cfe09041fcd33828e78992a0482c3eb9966 /xmake/core/language/language.lua | |
| parent | d986e3d5022914db01e4dec834de1368ab9147d4 (diff) | |
add add_csnippet and add_cxxsnippet into option
Diffstat (limited to 'xmake/core/language/language.lua')
| -rw-r--r-- | xmake/core/language/language.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xmake/core/language/language.lua b/xmake/core/language/language.lua index faaa1bb57..278d59a3e 100644 --- a/xmake/core/language/language.lua +++ b/xmake/core/language/language.lua @@ -412,13 +412,14 @@ function language.apis() end -- merge apis for each language - local apis = {values = {}, pathes = {}, custom = {}} + local apis = {values = {}, pathes = {}, 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.pathes, table.wrap(instance_apis.pathes)) - table.join2(apis.custom, table.wrap(instance_apis.custom)) + table.join2(apis.values, table.wrap(instance_apis.values)) + table.join2(apis.pathes, table.wrap(instance_apis.pathes)) + 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) |
