Code style fixes

This commit is contained in:
Strahinja Val Markovic 2013-02-23 15:54:44 -08:00
parent c819c9f31e
commit e1584a33b0
6 changed files with 23 additions and 22 deletions

View File

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

View File

@ -59,6 +59,7 @@ boost::python::list FilterAndSortCandidates(
const std::string &candidate_property, const std::string &candidate_property,
const std::string &query ) { const std::string &query ) {
pylist filtered_candidates; pylist filtered_candidates;
if ( query.empty() ) if ( query.empty() )
return filtered_candidates; return filtered_candidates;