diff --git a/externals/simplecpp/simplecpp.cpp b/externals/simplecpp/simplecpp.cpp index 9c147fa14..351c24fc4 100644 --- a/externals/simplecpp/simplecpp.cpp +++ b/externals/simplecpp/simplecpp.cpp @@ -1192,6 +1192,7 @@ namespace simplecpp { argtok = argtok->next; } if (!sameline(nametoken, argtok)) { + endToken = argtok ? argtok->previous : argtok; return false; } valueToken = argtok ? argtok->next : NULL;