Hello,
i'm having some trouble building a regular expression to filter out C and C++ 
style comments (//... /*...*/).
I constructed various regular expressions and also tried some i found on the 
web. But as soon as they are getting more sophisticated (e.g. being able to 
cope with additional * inside /*...*/), they all make CMake seg fault on some 
files. 
I could not track down the source of the crash inside the affected files, but 
they are all rather big (nearly 100KB - the rest is mostly smaller).
Unfortunately i can't just post the problematic files here, but i can post (one 
of) the regular expression i tried:

"((/\\*([^\\*]|(\\*+([^\\*/])))*\\*+/)|(//[^\r\n]*))"

Maybe someone has a regular expression at hand that is known to work?

CMake version is 2.8.0

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to