Fixed single quote escaping

BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//126063003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/csslib@31578 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/parser.dart b/lib/parser.dart
index 840b9f2..ba8cd13 100644
--- a/lib/parser.dart
+++ b/lib/parser.dart
@@ -1494,6 +1494,9 @@
           value = double.parse(termToken.text);
           break;
         case TokenKind.SINGLE_QUOTE:
+          value = processQuotedString(false);
+          value = "'${_escapeString(value, single: true)}'";
+          return new LiteralTerm(value, value, _makeSpan(start));
         case TokenKind.DOUBLE_QUOTE:
           value = processQuotedString(false);
           value = '"${_escapeString(value)}"';
@@ -2129,6 +2132,9 @@
       value = double.parse("${unary}${t.text}");
       break;
     case TokenKind.SINGLE_QUOTE:
+      value = processQuotedString(false);
+      value = "'${_escapeString(value, single: true)}'";
+      return new LiteralTerm(value, value, _makeSpan(start));
     case TokenKind.DOUBLE_QUOTE:
       value = processQuotedString(false);
       value = '"${_escapeString(value)}"';
diff --git a/pubspec.yaml b/pubspec.yaml
index 8ec9421..2762231 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: csslib
-version: 0.9.1
+version: 0.9.2
 author: "Polymer.dart Team <web-ui-dev@dartlang.org>"
 description: A library for parsing CSS.
 homepage: https://www.dartlang.org
diff --git a/test/compiler_test.dart b/test/compiler_test.dart
index f545a6d..8d63f8b 100644
--- a/test/compiler_test.dart
+++ b/test/compiler_test.dart
@@ -591,7 +591,7 @@
   expect(errors.isEmpty, true, reason: errors.toString());
   expect(prettyPrint(stylesheet), r'''
 html:lang(fr-ca) {
-  quotes: "\" " " \"";
+  quotes: '" ' ' "';
 }
 zoom {
 }
diff --git a/test/declaration_test.dart b/test/declaration_test.dart
index fa14ed3..ce46f5d 100644
--- a/test/declaration_test.dart
+++ b/test/declaration_test.dart
@@ -258,7 +258,7 @@
 
   final String generated = r'''
 .toggle:after {
-  content: "✔";
+  content: '✔';
   line-height: 43px;
   font-size: 20px;
   color: #d9d9d9;