Re-allow names containing ENUM in rep files


Expand the test from just looking for the existence of ENUM
and instead check that a sequence starts with ENUM and is
not followed by a letter.

Pick-to: 6.6 6.5
Fixes: QTBUG-117379
Change-Id: Ibf979eff0efee2fd82eac1c5c20a1a8bbc2ef2e6
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commit96cfbcc4570fcc4e426fdd6699d3666f49bf5c26
parentccb7b790cdd11bccb8d2ad32654ec23a2f05b134
authorMårten Nordheim <marten.nordheim@qt.io>
committerMårten Nordheim <marten.nordheim@qt.io>
commit timeMon, 27 Nov 2023 13:19:48 +0100