diff --git a/cpp/ycm/IdentifierUtils.cpp b/cpp/ycm/IdentifierUtils.cpp index 223cc698..3a196829 100644 --- a/cpp/ycm/IdentifierUtils.cpp +++ b/cpp/ycm/IdentifierUtils.cpp @@ -31,10 +31,10 @@ const char *COMMENT_AND_STRING_REGEX = "/\\*.*?\\*/" // C-style comments, '/* ... */' "|" // Anything inside single quotes, '...', but mind the escaped quote - "'(?:\\\\'|.)*?'" + "'(?:\\\\\\\\|\\\\'|.)*?'" "|" // Anything inside double quotes, "...", but mind the escaped double quote - "\"(?:\\\\\"|.)*?\""; + "\"(?:\\\\\\\\|\\\\\"|.)*?\""; const char *IDENTIFIER_REGEX = "[_a-zA-Z]\\w*";