Fix triple quotes breaking frontend query parser
Created by: lguychard
Fixes #8801 (closed)
The parser failed on queries containing tripe quotes, as it was parsing a quoted string, then expecting whitespace, instead of parsing all three quotes as a single literal. With this fix, if parsing a quoted string followed by whitespace or EOF fails, the parser will fall back to parsing a literal followed by whitespace or EOF.