[llvm-rc] Add ICON and HTML parsing ability (parser, pt 2/8).

This extends the current llvm-rc parser by ICON and HTML resources.
Moreover, some tests have been slightly rewritten.

Thanks for Nico Weber for his original work in this area.

Differential Revision: https://reviews.llvm.org/D36891

llvm-svn: 311939
diff --git a/llvm/test/tools/llvm-rc/Inputs/parser-correct-everything.rc b/llvm/test/tools/llvm-rc/Inputs/parser-correct-everything.rc
index 6337a36..37fc1cf 100644
--- a/llvm/test/tools/llvm-rc/Inputs/parser-correct-everything.rc
+++ b/llvm/test/tools/llvm-rc/Inputs/parser-correct-everything.rc
@@ -13,3 +13,6 @@
   2 "world"
 }
 STRINGTABLE BEGIN END
+
+500 HTML "index.html"
+Name Cursor "hello.ico"
diff --git a/llvm/test/tools/llvm-rc/Inputs/parser-html-bad-string.rc b/llvm/test/tools/llvm-rc/Inputs/parser-html-bad-string.rc
new file mode 100644
index 0000000..5edab85
--- /dev/null
+++ b/llvm/test/tools/llvm-rc/Inputs/parser-html-bad-string.rc
@@ -0,0 +1 @@
+200 HTML ThisPassesInTheOriginalToolButDocSaysItShouldBeQuoted
diff --git a/llvm/test/tools/llvm-rc/Inputs/parser-html-extra-comma.rc b/llvm/test/tools/llvm-rc/Inputs/parser-html-extra-comma.rc
new file mode 100644
index 0000000..e80c52c
--- /dev/null
+++ b/llvm/test/tools/llvm-rc/Inputs/parser-html-extra-comma.rc
@@ -0,0 +1 @@
+1 HTML, "index.html"