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

Parser: refactor 'foo.%` call parsing #10351

Merged
merged 1 commit into from
Feb 14, 2021

Commits on Feb 1, 2021

  1. Parser: refactor 'foo.%` call parsing

    Fixed crystal-lang#10296
    
    Currently, `%` call parsing is specialized like `if current_char == '%'`
    way in the parser, to avoid a confliction with `%`-string literals.
    However, the lexer has `wants_def_or_macro_name` flag for such things,
    we should use this instead of custom `if` way.
    
    The commit fixes the formatter also to set `wants_def_or_macro_name`
    flag correctly.
    makenowjust committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    f7b723c View commit details
    Browse the repository at this point in the history