diff options
| author | Jatty_ <jattyandriean@outlook.com> | 2022-09-13 18:38:03 +0700 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-09-23 16:09:38 +1000 |
| commit | 30e50ab1951680a046c224c12f7cc29aed410e2a (patch) | |
| tree | 026fbf61770e56bdaec1c8f59194072d14b03f98 | |
| parent | 25ff5b52d9786beff0b90a268af813b223f31f57 (diff) | |
stm32/make-stmconst.py: Support TypeDef's with a single char prefix.
Update the regex to support parsing files from the STM32CubeU5 library.
| -rw-r--r-- | ports/stm32/make-stmconst.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/make-stmconst.py b/ports/stm32/make-stmconst.py index 554d66238..aab4038e6 100644 --- a/ports/stm32/make-stmconst.py +++ b/ports/stm32/make-stmconst.py @@ -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", |
