Set the Lexer into qml mode when parsing binding expressions
authorLars Knoll <lars.knoll@digia.com>
Sun, 2 Jun 2013 20:56:59 +0000 (22:56 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 3 Jun 2013 05:04:57 +0000 (07:04 +0200)
commit20a6d9d2aba189eb52bc9986f83c8083a6a32fd9
treec53808b4ec425b45ae63462b17dd52142b3edcff
parent526d604c23fce27b85906ae11f772c00ae8b14e2
Set the Lexer into qml mode when parsing binding expressions

Binding expressions allow multiline strings and digits starting
with 0. Simply setting the lexer into qmlmode when parsing them
will allow these expressions to pass.

Fixes 3 more test failures in qqmlecmascript

Change-Id: Ia14ec6d3facaf31883bb824c57096e59df3efea2
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v4/qv4script.cpp