aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-struct-field-expr.h
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-03-23 11:06:26 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2022-03-23 14:35:47 +0100
commit6821a642ab796aba5024032e3ace118a5e8277e1 (patch)
tree17e32410541809ae45ee9d409dd69aa2b2ba35a9 /gcc/rust/backend/rust-compile-struct-field-expr.h
parenteef1ee2638c73e35cc804c2d4ab42598dccea8ac (diff)
downloadgcc-6821a642ab796aba5024032e3ace118a5e8277e1.zip
gcc-6821a642ab796aba5024032e3ace118a5e8277e1.tar.gz
gcc-6821a642ab796aba5024032e3ace118a5e8277e1.tar.bz2
macros: Add remaining restrictions for follow-set restrictions
Adds the remaining restrictions for follow-set ambiguities in macros. This means adding the remaining allowed tokens for all fragment specifiers with follow-up restrictions, as well as handling allowed fragment specifiers in certain cases. For example, :vis specifiers can sometimes be followed by fragments, if they have the :ident, :ty or :path specifier. Likewise for :path and :ty which can be followed by a :block. Finally, we also allow *any* fragment after a matcher: Since the matcher is delimiter by parentheses, brackets or curlies, anything is allowed afterwards.
Diffstat (limited to 'gcc/rust/backend/rust-compile-struct-field-expr.h')
0 files changed, 0 insertions, 0 deletions