atilaneves / dpp

Directly include C headers in D source code
Boost Software License 1.0
227 stars 31 forks source link

refactor macro preprocessor parentheses finder #330

Closed WebFreak001 closed 1 year ago

WebFreak001 commented 1 year ago

Just makes it easier to reuse the parentheses finding method as well as for checking \\\n) kind of tokens.

Also import Token everywhere, since it's ubiquitous in this module.

atilaneves commented 1 year ago

No test changes?

WebFreak001 commented 1 year ago

I originally added the tests with this in #331, but I can also add unittests just for this functionality

WebFreak001 commented 1 year ago

added unittests