Code style fixes
This commit is contained in:
parent
c819c9f31e
commit
e1584a33b0
@ -138,7 +138,7 @@ void IdentifierCompleter::AddCandidatesToDatabaseFromBuffer(
|
||||
const std::string &buffer_contents,
|
||||
const std::string &filetype,
|
||||
const std::string &filepath,
|
||||
bool collect_from_comments_and_strings) {
|
||||
bool collect_from_comments_and_strings ) {
|
||||
ClearCandidatesStoredForFile( filetype, filepath );
|
||||
|
||||
std::string new_contents =
|
||||
|
@ -30,11 +30,11 @@ 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
|
||||
"'(?:\\\\'|.)*?'"
|
||||
"|"
|
||||
"\"(?:\\\\\"|.)*?\""; // Anything inside double quotes, "...", but mind
|
||||
// the escaped double quote
|
||||
// Anything inside double quotes, "...", but mind the escaped double quote
|
||||
"\"(?:\\\\\"|.)*?\"";
|
||||
|
||||
const char *IDENTIFIER_REGEX = "[_a-zA-Z]\\w*";
|
||||
|
||||
|
@ -59,6 +59,7 @@ boost::python::list FilterAndSortCandidates(
|
||||
const std::string &candidate_property,
|
||||
const std::string &query ) {
|
||||
pylist filtered_candidates;
|
||||
|
||||
if ( query.empty() )
|
||||
return filtered_candidates;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user