You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use single quotes, it will (confusingly) tell you "expected STRING, got undefined". Single quotes are in fact strings, but invalid JSON, and therefore a very common error (see #46 , and Kong/insomnia#1150), so I think a more informative error message would be much more helpful.
The text was updated successfully, but these errors were encountered:
You could add single quotes to the lexer and instead of recognising them as string declarators, you would just make the tokenisation fail. I did something similar for JavaScript-like comments, so that they could be either ignored, or reported by a better error message.
If you use single quotes, it will (confusingly) tell you "expected STRING, got undefined". Single quotes are in fact strings, but invalid JSON, and therefore a very common error (see #46 , and Kong/insomnia#1150), so I think a more informative error message would be much more helpful.
The text was updated successfully, but these errors were encountered: