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

Command line parser respects outer escaped quote #15497

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Jun 22, 2022

Forward port scala/scala#10057

This is the tokenizing utility, not the arg conversion support for main methods.

inline def quote() = { qpos += pos ; bump() }
cur match
def advance(): Boolean = cur match
Copy link
Member

Choose a reason for hiding this comment

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

could advance be a separate loop called before the wider pattern match? then skipToDelim will continue to be tailrec.

@som-snytt
Copy link
Contributor Author

In sober light of morning, added comments and corrected loopiness of advance.

@bishabosha bishabosha merged commit 1c6fe6b into scala:main Jun 23, 2022
@som-snytt som-snytt deleted the forward/command-tokener branch June 23, 2022 10:48
@Kordyjan Kordyjan added this to the 3.2.1 milestone Aug 1, 2023
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.

3 participants