forked from dustypomerleau/rust-syntax
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters