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

Update the regex to support parsing files from the STM32CubeU5 library.
pull/9411/head
Jatty_ 2022-09-13 18:38:03 +07:00 zatwierdzone przez Damien George
rodzic 25ff5b52d9
commit 30e50ab195
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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",