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

Do not attempt to match newline characters #1

Merged
merged 1 commit into from
Feb 27, 2018
Merged

Do not attempt to match newline characters #1

merged 1 commit into from
Feb 27, 2018

Conversation

winstliu
Copy link

@winstliu winstliu commented Sep 27, 2017

This PR replaces all \n end matches with $. The two are nearly identical, with the only difference being that $ does not create a zero-width match at the end of the line. These changes are mainly required due to atom/first-mate#100, as newlines are no longer added to the last line of the file. Therefore, this change is simply a backwards-compatible change to ensure that language-frege continues working as before on Atom 1.22+.

I hope I did the whole grammar generation correctly!

/cc @Ingramz

Refs atom/atom#15729

@winstliu winstliu mentioned this pull request Sep 27, 2017
8 tasks
@brownian-motion
Copy link
Owner

Cool! Thanks for catching this. This package is derived from the Haskell language package, so I wasn't sure exactly how correct it'd be. I'll try this out on my machine and merge it if everything's fine!

@winstliu
Copy link
Author

winstliu commented Oct 2, 2017

I've submitted pretty much the same PR to upstream Haskell as well :).

@winstliu
Copy link
Author

@paxromana96 just a little reminder about this PR :). It's the last one waiting to be merged.

@brownian-motion brownian-motion merged commit 0af93ba into brownian-motion:master Feb 27, 2018
@winstliu winstliu deleted the wl-first-mate-changes branch February 27, 2018 21:46
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.

2 participants