Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

\n should not be parsed in strings #32

Closed

Description

@vmarkovtsev

Any JS string which has \n, e.g.

bufferedLog.push(...args, '\n');

contains parsed new lines instead of \n. The desired behavior is passing the string contents verbatim.

Activity

  1. changed the title [-]\n is parsed in strings[/-] [+]\n should not be parsed in strings[/+] on Aug 21, 2018
  2. self-assigned this
    on Aug 21, 2018
  3. dennwc commented on Nov 7, 2018

    @dennwc
    Member

    Blocked by bblfsh/sdk#318

  4. juanjux commented on Dec 13, 2018

    @juanjux
    Contributor

    @dennwc that should not block this issue.

  5. dennwc commented on Jan 3, 2019

    @dennwc
    Member

    OK, I can confirm that it's unrelated to that issue.

    Usually, drivers provide an escaped (raw) string literal in the native AST. But for this driver, we used the unescaped value (parsed).

    I will change it to use the raw value in Native/Annotated and parse it for Semantic (like in all other drivers).

  6. added 2 commits that reference this issue on Jan 3, 2019
    b63bee4
    676f7ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions