Fix typo when recognizing escape characters
authorRoberto Raggi <roberto.raggi@nokia.com>
Tue, 13 Sep 2011 11:28:16 +0000 (13:28 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Sep 2011 10:07:46 +0000 (12:07 +0200)
Change-Id: Id97d5c12d271794fb9c7c752fd6535af90883eb4
Reviewed-on: http://codereview.qt-project.org/4770
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/declarative/qml/parser/qdeclarativejslexer.cpp

index aee444e..342b1a8 100644 (file)
@@ -616,7 +616,7 @@ again:
                     break;
 
                 // single character escape sequence
-                case '\\': u = QLatin1Char('\''); scanChar(); break;
+                case '\\': u = QLatin1Char('\\'); scanChar(); break;
                 case '\'': u = QLatin1Char('\''); scanChar(); break;
                 case '\"': u = QLatin1Char('\"'); scanChar(); break;
                 case 'b':  u = QLatin1Char('\b'); scanChar(); break;