diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index 60eb3526..f53ebfeb 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -880,13 +880,13 @@ class lexer : public lexer_base default: { unget(); - break; + continue; } } } default: - break; + continue; } } } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 9c66a845..4462da8f 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -6759,13 +6759,13 @@ class lexer : public lexer_base default: { unget(); - break; + continue; } } } default: - break; + continue; } } }