Minor bug.. I'm guessing this happens when SFDC has a field name that matches a reserved word.
If I have a query that says this..
SELECT
Id,
Description,
FolderName,
Format,
Name
FROM Report
WHERE Name = '...'
...the query works fine but I get a warnng that says "Message: mismatched input ',' expecting '(', position 7 1 1".
I notice that Format is colored different in the editor. If I remove that field, the warning goes away.