Don't assume QChar::null() is the end of input
authorLars Knoll <lars.knoll@digia.com>
Tue, 11 Dec 2012 20:09:47 +0000 (21:09 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 11 Dec 2012 13:50:32 +0000 (14:50 +0100)
commite0f21c696a1f960d0e55f33eed9d1dc37d8edae0
treeb02c123deccaba9121ed0e307de25115dead101b
parent8bd89ac26344c1a617dcfd4730f93559ad48e9d4
Don't assume QChar::null() is the end of input

The lexer currently assumes a null QChar implies the end
of our input stream. Change it to take the full string into
account. null QChar's inside comments or strings are now
accepted, everywhere else they will cause a parse error.

Change-Id: I60c40a32d5afe94c6c56d8a8092fc32726b98420
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
src/qml/qml/parser/qqmljslexer.cpp