From 65d4bca69eeceef7af247f3683f8844e07fce771 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Thu, 3 Sep 2009 18:52:01 +0200 Subject: QCSSScanner: really skip toLower() when tokenizing the input. Missing from e3c62dc1def9270761ca63c73ae76fdca9d61582 is the actual change to the (generated) scanner, namely to skip lowercase conversion for each and every character. --- src/gui/text/qcssscanner.cpp | 2 +- util/lexgen/css2-simplified.lexgen | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/text/qcssscanner.cpp b/src/gui/text/qcssscanner.cpp index 06a13de..5bbf638 100644 --- a/src/gui/text/qcssscanner.cpp +++ b/src/gui/text/qcssscanner.cpp @@ -46,7 +46,7 @@ public: QCssScanner_Generated(const QString &inp); inline QChar next() { - return (pos < input.length()) ? input.at(pos++).toLower() : QChar(); + return (pos < input.length()) ? input.at(pos++) : QChar(); } int handleCommentStart(); int lex(); diff --git a/util/lexgen/css2-simplified.lexgen b/util/lexgen/css2-simplified.lexgen index 299ff5e..53facb1 100644 --- a/util/lexgen/css2-simplified.lexgen +++ b/util/lexgen/css2-simplified.lexgen @@ -1,4 +1,5 @@ [Options] +case-sensitive classname = QCssScanner_Generated [Code Generator Options] -- cgit v0.12