diff --git a/ports/stm32/make-stmconst.py b/ports/stm32/make-stmconst.py index ac5c56f5c7..602bdc6c19 100644 --- a/ports/stm32/make-stmconst.py +++ b/ports/stm32/make-stmconst.py @@ -46,7 +46,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 = ( (