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 some grammar inconsistencies for the '..' range notation. #21374

Merged
merged 1 commit into from
Jan 23, 2015

Commits on Jan 22, 2015

  1. Fix some grammar inconsistencies for the '..' range notation.

    Grammar changes:
    * allow 'for _ in 1..i {}' (fixes rust-lang#20241)
    * allow 'for _ in 1.. {}' as infinite loop
    * prevent use of range notation in contexts where only operators of high
      precedence are expected (fixes rust-lang#20811)
    
    Parser code cleanup:
    * remove RESTRICTION_NO_DOTS
    * make AS_PREC const and follow naming convention
    * make min_prec inclusive
    dgrunwald committed Jan 22, 2015
    Configuration menu
    Copy the full SHA
    db013f9 View commit details
    Browse the repository at this point in the history