Curly bracket in javascript breaks the parser
JS function using curly bracket breaks the Lexer parsing.
import QtQuick 2.15
Rectangle {
function foo(){
var bar = ' }'
}
}
Error is:
ERROR:root:Lexer error line 8: Unexpected token: Token(type='block_end', value='}', idx=113, column=0)
}
^