From ae5803557378ac151fe142a140fc75b94b05a7f9 Mon Sep 17 00:00:00 2001 From: Tony Abboud Date: Wed, 4 Nov 2015 19:42:28 -0500 Subject: [PATCH] stmhal: Add missing regex property for parsing header comments --- stmhal/make-stmconst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(?P8|16|32)_t +(?P[A-Z0-9]+)' - re_comment = r'(?P[A-Za-z0-9 \-/_()]+)' + re_comment = r'(?P[A-Za-z0-9 \-/_()&]+)' re_addr_offset = r'Address offset: (?P0x[0-9A-Z]{2,3})' regexs = ( ('#define hex', re.compile(r'#define +(?P[A-Z0-9_]+) +\(\(uint32_t\)(?P0x[0-9A-F]+)\)($| +/\*)')),