[llvm-rc] Make commas in user data structs optional
authorMartin Storsjö <martin@martin.st>
Sat, 1 Aug 2020 06:44:24 +0000 (09:44 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 9 Jul 2021 11:31:12 +0000 (14:31 +0300)
commitbeb0e7e338d6c196362745ddebc24ae394bff6f2
tree29698c842389107b046a9f3826e5bf9293f15dfe
parente479777d3c8e27f7e236edc9e18d0d7118d0fcfd
[llvm-rc] Make commas in user data structs optional

This matches what rc.exe tolerates in this type.

This fixes cases like this:

    1 24
    BEGIN
      "<?xml version=""1.0""?>\n"
      "<assembly>\n"
      "</assembly>\n"
    END

Differential Revision: https://reviews.llvm.org/D105621
llvm/test/tools/llvm-rc/Inputs/inline-manifest.rc [new file with mode: 0644]
llvm/test/tools/llvm-rc/Inputs/tag-user.rc
llvm/test/tools/llvm-rc/inline-manifest.test [new file with mode: 0644]
llvm/tools/llvm-rc/ResourceScriptParser.cpp