diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-16 10:29:35 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2023-10-17 22:18:41 +0000 |
commit | 94b1ff75bb7d45804034fcd08e634d36727ffcc2 (patch) | |
tree | 00e157f3d1f9634b2d7e2beac6d1effc47f2b406 /gcc | |
parent | c3b68b53f27c766dfe8987ed3d279c603582443c (diff) | |
download | gcc-94b1ff75bb7d45804034fcd08e634d36727ffcc2.zip gcc-94b1ff75bb7d45804034fcd08e634d36727ffcc2.tar.gz gcc-94b1ff75bb7d45804034fcd08e634d36727ffcc2.tar.bz2 |
Add path to macro fragment follow restrictions
The previous follow set rules did not allow PATH fragment, changing this
allow gccrs to accept more valid rust macros.
gcc/rust/ChangeLog:
* ast/rust-macro.h: Add PATH fragment to follow set restrictions.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-macro.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 2808393..c7f9025 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -149,6 +149,7 @@ public: { switch (kind) { + case PATH: case PAT: case TY: case VIS: |