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

Wrong tree on parsing array/string with special characters (EOL) #82

Open
wizche opened this issue Jan 18, 2016 · 0 comments
Open

Wrong tree on parsing array/string with special characters (EOL) #82

wizche opened this issue Jan 18, 2016 · 0 comments

Comments

@wizche
Copy link

wizche commented Jan 18, 2016

If parsing the following javascript:

var x = ['a','\n'];

The resulting Array node will contain only the 'a' field.
image

Probably also related, when parsing var x = '\n'; the following exception is raised:

SyntaxError: Unexpected token (SEMI, ';') at 1:11 between LexToken(LINE_TERMINATOR,'\n',1,9) and None
-------------------- >> begin captured stdout << ---------------------
Illegal character "'" at 1:8 after LexToken(EQ,'=',1,6)
Illegal character "'" at 1:10 after LexToken(LINE_TERMINATOR,'\n',1,9)
metatoaster added a commit to calmjs/calmjs.parse that referenced this issue Jun 8, 2017
- Also note that the following issues were addressed, where applicable
  to the lexer or parser.

  - rspivak/slimit#52
  - rspivak/slimit#54
  - rspivak/slimit#57
  - rspivak/slimit#59
  - rspivak/slimit#62
  - rspivak/slimit#65
  - rspivak/slimit#70
  - rspivak/slimit#73
  - rspivak/slimit#79
  - rspivak/slimit#81
  - rspivak/slimit#82
  - rspivak/slimit#90

- Will get the release out when I get some sleep.
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

1 participant