From e50eae2dd15914409c9317f2bea872b740cb40c8 Mon Sep 17 00:00:00 2001 From: xiehan <52160700+Barenboim@users.noreply.github.com> Date: Tue, 21 May 2024 21:12:47 +0800 Subject: [PATCH] Fix single line comment bug. (#383) --- src/generator/parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator/parser.cc b/src/generator/parser.cc index 85b010d4..f6555c04 100644 --- a/src/generator/parser.cc +++ b/src/generator/parser.cc @@ -83,7 +83,7 @@ bool Parser::parse(const std::string& proto_file, idl_info& info) while (fgets(line_buffer, LINE_LENGTH_MAX, in)) { - std::string line = SGenUtil::lstrip(line_buffer); + std::string line = SGenUtil::strip(line_buffer); if (line.empty()) continue;