stm32/make-stmconst.py: Support TypeDef's with a single char prefix.

Update the regex to support parsing files from the STM32CubeU5 library.
This commit is contained in:
Jatty_ 2022-09-13 18:38:03 +07:00 committed by Damien George
parent 25ff5b52d9
commit 30e50ab195
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class Lexer:
("}", re.compile(r"}$")),
(
"} TypeDef",
re.compile(r"} *(?P<id>[A-Z][A-Za-z0-9_]+)_(?P<global>([A-Za-z0-9_]+)?)TypeDef;$"),
re.compile(r"} *(?P<id>[A-Z][A-Za-z0-9_]*)_(?P<global>([A-Za-z0-9_]+)?)TypeDef;$"),
),
(
"IO reg",