Fix escape sequences in lexer: the capital X is not an EscapeCharacter.
authorErik Verbruggen <erik.verbruggen@digia.com>
Wed, 28 Nov 2012 13:21:21 +0000 (14:21 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 28 Nov 2012 13:39:20 +0000 (14:39 +0100)
The ECMA test suite has a test to check that none of the characters in
the English capital alphabet are escapable (S7.8.4_A4.2_T1). Or, put
differently, paragraph 7.8.4 states that only the lower-case x is
escapable and usable for a HexEscapeSequence.

Change-Id: Ie9f73726889ee9e0165c75c9b2e006a9f2b3dbda
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/parser/qqmljslexer.cpp

index 5eecf7b..b53f16c 100644 (file)
@@ -604,7 +604,6 @@ again:
 
                 // hex escape sequence
                 case 'x':
-                case 'X':
                     if (isHexDigit(_codePtr[0]) && isHexDigit(_codePtr[1])) {
                         scanChar();