Updating comments for the string-stripping regex

This commit is contained in:
Strahinja Val Markovic 2013-03-23 10:56:56 -07:00
parent bd75efedbc
commit c2ef3f785b

View File

@ -30,10 +30,12 @@ const char *COMMENT_AND_STRING_REGEX =
"|"
"/\\*.*?\\*/" // C-style comments, '/* ... */'
"|"
// Anything inside single quotes, '...', but mind the escaped quote
// Anything inside single quotes, '...', but mind the escaped quote and the
// escaped slash (\\)
"'(?:\\\\\\\\|\\\\'|.)*?'"
"|"
// Anything inside double quotes, "...", but mind the escaped double quote
// Anything inside double quotes, "...", but mind the escaped double quote and
// the escaped slash (\\)
"\"(?:\\\\\\\\|\\\\\"|.)*?\"";
const char *IDENTIFIER_REGEX = "[_a-zA-Z]\\w*";