From 0aa9fa1ba458f20b28c92e88efb991cc0937920d Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Wed, 28 Nov 2012 14:21:21 +0100 Subject: [PATCH] Fix escape sequences in lexer: the capital X is not an EscapeCharacter. 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 --- src/qml/qml/parser/qqmljslexer.cpp | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/qml/qml/parser/qqmljslexer.cpp b/src/qml/qml/parser/qqmljslexer.cpp index 5eecf7b..b53f16c 100644 --- a/src/qml/qml/parser/qqmljslexer.cpp +++ b/src/qml/qml/parser/qqmljslexer.cpp @@ -604,7 +604,6 @@ again: // hex escape sequence case 'x': - case 'X': if (isHexDigit(_codePtr[0]) && isHexDigit(_codePtr[1])) { scanChar(); -- 1.7.2.5