in reply to need to recognize string literals and ignore then during parsing.

What is the best way to ignore a string or a commented statement and ignore these only, during the parsing?

The best way is to use a parser that knows about the language it is parsing rather than rely on regular expressions to figure out what needs highlighting or not.

  • Comment on Re: need to recognize string literals and ignore then during parsing.