We fixed such issue in between RC3 and FINAL.
And it works for me now with your example.
Now you please try 5.23 FINAL.
this tokenizer is very complicated! But still it should not happen of course!
The reason why this reoccurred is that with a single query only in the Editor 'execute' (single query) will execute the query even if the cursor is positioned after a semicolon. That was a user request.