From e293b5cc43f3416706c61e8c839e6e9ab4d0e853 Mon Sep 17 00:00:00 2001 From: Joshua Humphries Date: Thu, 15 Sep 2022 15:27:38 -0400 Subject: [PATCH] clarify comment --- src/google/protobuf/compiler/parser.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/parser.cc b/src/google/protobuf/compiler/parser.cc index 8158b9724e..e053eca7e5 100644 --- a/src/google/protobuf/compiler/parser.cc +++ b/src/google/protobuf/compiler/parser.cc @@ -1730,7 +1730,8 @@ bool Parser::ParseReserved(DescriptorProto* message, } bool Parser::ParseReservedName(std::string* name, const char* error_message) { - // capture position of token + // Capture the position of the token, in case we have to report an + // error after it is consumed. int line = input_->current().line; int col = input_->current().column; DO(ConsumeString(name, error_message));