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

Fix error when parsing .gyp file with a backslash #2

Merged
merged 3 commits into from Dec 6, 2021

Conversation

asamuzaK
Copy link
Contributor

@asamuzaK asamuzaK commented Dec 4, 2021

Regarding Unify node.gyp code styling · Issue #41072 · nodejs/node, in node.gyp, multi-line character strings are combined by inserting \ before a line break.
That causes 'Unknown escape character' error in gyp-parser.

This PR is a bug fix on the gyp-parser side.

asamuzaK and others added 3 commits December 4, 2021 13:03
Regarding [Unify node.gyp code styling · Issue #41072 · nodejs/node](nodejs/node#41072), in `node.gyp`, multi-line character strings are combined by inserting `\` before a line break.
That causes 'Unknown escape character' error in `gyp-parser`.

This PR is a bug fix on the `gyp-parser` side.
Copy link
Owner

@addaleax addaleax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I made one small change, inlining cr and lf definitions because it feels a bit more readable to me, but that’s not a big thing anyway :)

@addaleax addaleax merged commit 86591ad into addaleax:main Dec 6, 2021
@addaleax
Copy link
Owner

addaleax commented Dec 6, 2021

Thanks, merged and published in 📦 gyp-parser@1.0.3 👍

@asamuzaK asamuzaK deleted the backslash branch December 6, 2021 17:12
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

Successfully merging this pull request may close these issues.

None yet

2 participants