An argument that will pass a comment-less source to a tool

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

An argument that will pass a comment-less source to a tool

Post by Mistrel »

I want to check my source for particular keywords and perform an action if they are present in the source. It would be convenient if I could comment these keywords out in my source to prevent my tool from picking them up.

I can try but I don't know how to filter all of the cases where characters to the right of a ';' may or may not be part of a comment.

Right now my tool just checks to see if there is a ';' to the left of a keyword. I think that's ok.