Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token (ID, 'params') #104

Open
FVolral opened this issue Aug 16, 2018 · 1 comment
Open

Unexpected token (ID, 'params') #104

FVolral opened this issue Aug 16, 2018 · 1 comment

Comments

@FVolral
Copy link

FVolral commented Aug 16, 2018

I've the following error when I'm trying to parse a file:

Illegal character '\xa0' at 1:2065 after LexToken(ID,'Â',1,2064)
  File "<string>", line unknown
SyntaxError: Unexpected token (ID, 'params') at 1:2066 between LexToken(ID,'Â',1,2064) and LexToken(PERIOD,'.',1,2072)

It comes from these lines of code:

if (!(params.args && params.args[0] !== undefined)) {
    params.kwargs.domain = options.domain || params.domain || params.kwargs.domain || [];
}
@metatoaster
Copy link

Looks like you have other code or stale state in the lexer/parser that is actually triggering these errors, as the 'Â' is not present in the code fragment that you have provided here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants