Parse identifiers according to spec
authorLars Knoll <lars.knoll@digia.com>
Mon, 10 Dec 2012 23:25:55 +0000 (00:25 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 11 Dec 2012 13:50:32 +0000 (14:50 +0100)
commit731139b512db04dcb52db4ef3c4c1ad51007e2c7
treec6e7cc7418fff542f41538860733eec2c8135db3
parentbac602c454f38ddde01167a3f75cb10ce1cfb876
Parse identifiers according to spec

If a unicode escape sequence decodes to a char that is
not allowed in the identifier we need to throw a parse
error. So decode before checking whether the char is
valid.

Also fix the set of accepted unicode characters for the
start and in the middle of an identifier to what the spec
demands.

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