While fixed the issue [[tickets:#16]](http://sourceforge.net/p/codeblocks/tickets/16/), I see that this function has a lot of issue, and need to be refactored. Logically, it is better to use the "token", not the "single character" while parse the whole string.