if (s[2].unicode() == 'p') {
if (s[3].unicode() == 'e') {
if (s[4].unicode() == 'r') {
- return qmlMode ? Lexer::T_SUPER : Lexer::T_RESERVED_WORD;
- return qmlMode ? int(Lexer::T_SUPER) : int(Lexer::T_IDENTIFIER);
++ return qmlMode ? int(Lexer::T_SUPER) : int(Lexer::T_RESERVED_WORD);
}
}
}
QTest::newRow("special8") << "c8" << QVariant(QString("\""));
QTest::newRow("special9") << "c9" << QVariant(QString("\\"));
// We don't handle octal escape sequences
- // QTest::newRow("special10") << "c10" << QVariant(QString("\251"));
- QTest::newRow("special11") << "c10" << QVariant(QString::fromLatin1("\xa9"));
- QTest::newRow("special12") << "c11" << QVariant(QString::fromUtf8("\u00A9"));
- QTest::newRow("special11") << "c10" << QVariant(QString(1, QChar(0xa9)));
- QTest::newRow("special12") << "c11" << QVariant(QString(1, QChar(0x00A9)));
++ QTest::newRow("special10") << "c10" << QVariant(QString(1, QChar(0xa9)));
++ QTest::newRow("special11") << "c11" << QVariant(QString(1, QChar(0x00A9)));
}
void tst_qqmllanguage::literals()