Skip to content
Snippets Groups Projects
Commit 2dd5bebd authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Skip white spaces.

parent e7bf61cf
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment