Skip to content

Handle Spaces in Makefile Parsing #49

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

Merged
merged 1 commit into from
Aug 13, 2019

Conversation

gmittert
Copy link
Contributor

In a Makefile, spaces can be escaped by a preceeding backslash. Rather
than using string.split, iterate through the string keeping track of the
previous character.

Copy link
Contributor

@benlangmuir benlangmuir left a comment

Choose a reason for hiding this comment

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

This is complicated enough it would be good to test it. You can make this a public function in ISDBTibs module if you like

In a Makefile, spaces can be escaped by a preceeding backslash. Rather
than using string.split, iterate through the string keeping track of the
previous character.

Additionally added a test for the new functionality
@gmittert gmittert force-pushed the MakeSpaceForAnEscapeRoute branch from 7d384dd to f016af0 Compare August 13, 2019 18:29
@gmittert
Copy link
Contributor Author

Rebased, added a test, and moved the Makefile logic into its own file.

@swift-ci please test

@benlangmuir benlangmuir merged commit 97ec3b5 into swiftlang:master Aug 13, 2019
@gmittert gmittert deleted the MakeSpaceForAnEscapeRoute branch August 13, 2019 20:41
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