lubyk / dub

A Lua bindings generator that uses Doxygen to parse C/C++ headers.
doc.lubyk.org/dub.html
Other
82 stars 34 forks source link

header_base does not work for directories with special characters #8

Closed hendrikmuhs closed 9 years ago

hendrikmuhs commented 9 years ago

it took some effort to find out why 'header_base' did not work for me:

I have a directory in my path with a '-' (e.g. 'git-test'), for those the string matching in: https://github.com/lubyk/dub/blob/master/dub/LuaBinder.lua#L598 does not match as the '-' is interpreted as pattern, in order to match literally it needs to be escaped: '-' -> '%-'

I can make a workaround for it in my binding script but the right way would be to fix it in LuaBinder.lua

hendrikmuhs commented 9 years ago

Thanks!

gaspard commented 9 years ago

I am pushing the new rock to luarocks (but I need to push other rocks with lua 5.3 compatibility at the same time). Should be finished today.

gaspard commented 9 years ago

Done. dub 2.2.2 is out.