mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user