What are the correct regular expressions using NSRegularExpression for syntax highlighting?
The following test must be passed:
code // comment
code /* comment */ code
code "string" code
code // comment
code
code /* comment
comment */ code
code "string
code" string
code "string\
string" code
code // comment "comment"
code /* comment "comment" */ code
code "string /* string */ // string" code
code // comment
"string"
code /* comment
"comment" */ code
code "string
/* comment */ // comment" string
code "string\
/* string */ // string" code
code // comment // comment
code /* comment /* comment */ code */
code "string \" string" code "string" code