From 9410276cf7c46ceade1cc812a7d30e6ae0b3d2d1 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Mon, 7 May 2018 20:27:28 +0000 Subject: [llvm-rc] Allow optional commas between the string table index and value This form is even used in one of the examples at https://msdn.microsoft.com/en-us/library/windows/desktop/aa381050(v=vs.85).aspx. Differential Revision: https://reviews.llvm.org/D46508 llvm-svn: 331669 --- llvm/tools/llvm-rc/ResourceScriptParser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/tools/llvm-rc') diff --git a/llvm/tools/llvm-rc/ResourceScriptParser.cpp b/llvm/tools/llvm-rc/ResourceScriptParser.cpp index 14fe4b4583a..d8398b78514 100644 --- a/llvm/tools/llvm-rc/ResourceScriptParser.cpp +++ b/llvm/tools/llvm-rc/ResourceScriptParser.cpp @@ -573,6 +573,7 @@ RCParser::ParseType RCParser::parseStringTableResource() { // Some examples in documentation suggest that there might be a comma in // between, however we strictly adhere to the single statement definition. ASSIGN_OR_RETURN(IDResult, readInt()); + consumeOptionalType(Kind::Comma); ASSIGN_OR_RETURN(StrResult, readString()); Table->addString(*IDResult, *StrResult); } -- cgit v1.2.3