jacob-carlborg / dstep

A tool for converting C and Objective-C headers to D modules
205 stars 37 forks source link

Header files that are D keywords aren't handled properly #242

Open lesderid opened 5 years ago

lesderid commented 5 years ago

Header files with a name of the format keyword.h (where keyword is any D keyword) aren't handled separately.

This results in errors when trying to import the module: e.g. import mylibrary.switch; results in Error: identifier expected following `package`​.

Suggestion: append _ to the module name when it's a reserved identifier.