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:
parent
25ff5b52d9
commit
30e50ab195
@ -72,7 +72,7 @@ class Lexer:
|
|||||||
("}", re.compile(r"}$")),
|
("}", re.compile(r"}$")),
|
||||||
(
|
(
|
||||||
"} TypeDef",
|
"} 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",
|
"IO reg",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user