title: Detecting for/if/while statements
body: <p>I'm coding a .cpp parser in C#, and I need to detect <code>for/if/while</code> statements. At first I thought that trimming the lines and checking if current line starts with <code>for/if/while</code> would be enough. However I've been told that there may be some exceptions and that solution wouldn't work properly. Which exceptions are there that I should think of? Which characters can occur before a statement? Is there an easier way to do it?</p>