aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2012-11-28 14:21:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-28 14:39:20 +0100
commit0aa9fa1ba458f20b28c92e88efb991cc0937920d (patch)
treea12d6b48cb803f54416d25d7de3d2bad98771fd5 /src
parenta8827f7c195a7e358a323af33725bb21e030e4e4 (diff)
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 <lars.knoll@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/qml/qml/parser/qqmljslexer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/qml/parser/qqmljslexer.cpp b/src/qml/qml/parser/qqmljslexer.cpp
index 5eecf7b922..b53f16ca2c 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();