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

Data tables parsing #6

Open
mazfish opened this issue Mar 28, 2018 · 1 comment
Open

Data tables parsing #6

mazfish opened this issue Mar 28, 2018 · 1 comment

Comments

@mazfish
Copy link

mazfish commented Mar 28, 2018

When I use data tables in my *.feature, I have this parsing error:
Expected "\n" or [^|\n] but "|" found.

My conf: Windows, vscode, node 6.9.1, git with autocrlf=true

I try to edit my file with other editor, remove space, new line, etc. Nothing changes.

@mazfish
Copy link
Author

mazfish commented May 24, 2018

Details: It work with LF but not with CRLF (\n vs \r\n)

Perhaps due to:

  protected transformFile(filename: string, file) {
    const { code, map } = new SourceNode(1, 1, filename, [
      this.options.preamble,
      file
    ]).toStringWithSourceMap({ file: filename });

    return (
      code +
      '\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,' +
      Buffer.from(map.toString(), 'utf8').toString('base64')
    );
}

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