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

update fragment specifiers/allow spaces in metavariable declarations #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 11, 2024

  1. update fragment specifiers/allow spaces in metavariable declarations

    - Add `pat_param` specifier from 2021 edition
    - Add `expr_2021` specifier from 2024 edition: https://doc.rust-lang.org/edition-guide/rust-2024/macro-fragment-specifiers.html
      - This specifier is currently unstable but the name seems to be confirmed: rust-lang/rust#123742 (comment)
    - Require a word boundary (`\b`) at the end of the specifier
    - Replace `[A-Za-z0-9_]` with `\w`
    - Allow spaces before and after the `:` in metavariable declarations
    - Add tests for the new specifiers and spacing
    youngspe committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    01dc6be View commit details
    Browse the repository at this point in the history