Updating comments for the string-stripping regex
This commit is contained in:
parent
bd75efedbc
commit
c2ef3f785b
@ -30,10 +30,12 @@ const char *COMMENT_AND_STRING_REGEX =
|
|||||||
"|"
|
"|"
|
||||||
"/\\*.*?\\*/" // C-style comments, '/* ... */'
|
"/\\*.*?\\*/" // 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*";
|
const char *IDENTIFIER_REGEX = "[_a-zA-Z]\\w*";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user