diff options
author | Tony Abboud <tdabboud@hotmail.com> | 2015-11-04 19:42:28 -0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-11-06 23:32:55 +0000 |
commit | ae5803557378ac151fe142a140fc75b94b05a7f9 (patch) | |
tree | d885ab314923c5d6b369357d875dcf276d834817 | |
parent | 8b8d189bc09b050f9a66048736c7e990ac8c8335 (diff) | |
download | micropython-ae5803557378ac151fe142a140fc75b94b05a7f9.tar.gz micropython-ae5803557378ac151fe142a140fc75b94b05a7f9.zip |
stmhal: Add missing regex property for parsing header comments
-rw-r--r-- | stmhal/make-stmconst.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/make-stmconst.py b/stmhal/make-stmconst.py index fa5f9468d9..79e69a3bf4 100644 --- a/stmhal/make-stmconst.py +++ b/stmhal/make-stmconst.py @@ -26,7 +26,7 @@ class LexerError(Exception): class Lexer: re_io_reg = r'__IO uint(?P<bits>8|16|32)_t +(?P<reg>[A-Z0-9]+)' - re_comment = r'(?P<comment>[A-Za-z0-9 \-/_()]+)' + re_comment = r'(?P<comment>[A-Za-z0-9 \-/_()&]+)' re_addr_offset = r'Address offset: (?P<offset>0x[0-9A-Z]{2,3})' regexs = ( ('#define hex', re.compile(r'#define +(?P<id>[A-Z0-9_]+) +\(\(uint32_t\)(?P<hex>0x[0-9A-F]+)\)($| +/\*)')), |