Commit 2dd5bebd authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Skip white spaces.

parent e7bf61cf
......@@ -211,7 +211,11 @@ QList<Token> QmlJSScanner::operator()(const QString &text, int startState)
break;
default:
if (ch.isNumber()) {
if (ch.isSpace()) {
do {
++index;
} while (index < text.length() && text.at(index).isSpace());
} else if (ch.isNumber()) {
const int start = index;
do {
++index;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment