diff --git a/src/unicode.cpp b/src/unicode.cpp index 5a2c9bb8a..7cd479450 100644 --- a/src/unicode.cpp +++ b/src/unicode.cpp @@ -864,7 +864,7 @@ std::vector unicode_regex_split(const std::string & text, const std } // parse more metcharacters and espaped characters - if (cpt == '\\') { + if (cpt == '\\') { switch (cpts_regex[i + 1]) { case 's': ++i; continue; // \s whitespaces case 'w': ++i; continue; // \w words @@ -933,7 +933,7 @@ std::vector unicode_regex_split(const std::string & text, const std if (range.first < range.second) { it->second += (wchar_t) '-'; it->second += (wchar_t) range.second; - } + } } } prev_range = range; diff --git a/src/unicode.h b/src/unicode.h index 536e80ef1..75cdb3f4a 100644 --- a/src/unicode.h +++ b/src/unicode.h @@ -162,7 +162,7 @@ struct codepoint_categ { case 'Z': return Z | (_subindex(subcateg, "lps" ) << 7); default: assert (false); return 0; } - }; + } uint16_t encoded; };