diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-04-09 16:30:50 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-13 08:49:09 +0200 |
commit | 9b4bb235cf94721662f0cb07d033d4a10489b5a4 (patch) | |
tree | 8a197585c7bd9e5d18a3cfe101d4c87c15b32dfc /src/qml/parser/qqmljslexer_p.h | |
parent | fcc798e10382fdea965f83427042a76e97af1e90 (diff) |
QQmlJSLexer: Add support for peeking one QChar
This is helpful for the upcoming handling of ?., which needs to be
treated as a single token (T_QUESTION_DOT), unless it is followed by a
number literal.
Change-Id: Id5e992bd037c2df88ef6e66905ec58a39bb67d73
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/parser/qqmljslexer_p.h')
-rw-r--r-- | src/qml/parser/qqmljslexer_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/parser/qqmljslexer_p.h b/src/qml/parser/qqmljslexer_p.h index 7b4c219506..b7ac4a3940 100644 --- a/src/qml/parser/qqmljslexer_p.h +++ b/src/qml/parser/qqmljslexer_p.h @@ -191,6 +191,7 @@ protected: private: inline void scanChar(); + inline QChar peekChar(); int scanToken(); int scanNumber(QChar ch); int scanVersionNumber(QChar ch); |