diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-02-06 00:04:27 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-02-08 14:00:48 +0000 |
commit | b555f45c10a050be9410f9dc6286a44753cc7d98 (patch) | |
tree | bcd065a0624abec293fa587cec8209dec895e4e7 /src/qml/parser/qqmljslexer_p.h | |
parent | f7bc003aa12270da905e8f665bc0ad221a132f89 (diff) |
Implement parsing of ECMAScript 6 Unicode escape sequences
ECMAScript 6 added the \u{XXXX} syntax to encode arbitrary
Unicode code points. Support this properly in our lexer.
One issue currently is that codepoints outside the BMP will
not yet be handled correctly.
Change-Id: Id46f9ec6fdbb264a5a919d84a16857afc9e8ca6e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/parser/qqmljslexer_p.h')
-rw-r--r-- | src/qml/parser/qqmljslexer_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/parser/qqmljslexer_p.h b/src/qml/parser/qqmljslexer_p.h index 902ac5ad7c..c25b74b12d 100644 --- a/src/qml/parser/qqmljslexer_p.h +++ b/src/qml/parser/qqmljslexer_p.h @@ -199,7 +199,6 @@ private: static bool isDecimalDigit(ushort c); static bool isHexDigit(QChar c); static bool isOctalDigit(ushort c); - static bool isUnicodeEscapeSequence(const QChar *chars); void syncProhibitAutomaticSemicolon(); QChar decodeUnicodeEscapeCharacter(bool *ok); |