kopia lustrzana https://github.com/micropython/micropython
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
rodzic
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",
|
||||||
|
|
Ładowanie…
Reference in New Issue