What are the correct regular expressions using NSRegularExpression for syntax highlighting?
The following test must be passed:
code // comment code /* c
I think it's impossible in global sense (not just on the sample). So, regexp cann't be used for syntax highlighting.