Skip to content

Commit ae58035

Browse files
tabbouddpgeorge
authored andcommitted
stmhal: Add missing regex property for parsing header comments
1 parent 8b8d189 commit ae58035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stmhal/make-stmconst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, line):
2626

2727
class Lexer:
2828
re_io_reg = r'__IO uint(?P<bits>8|16|32)_t +(?P<reg>[A-Z0-9]+)'
29-
re_comment = r'(?P<comment>[A-Za-z0-9 \-/_()]+)'
29+
re_comment = r'(?P<comment>[A-Za-z0-9 \-/_()&]+)'
3030
re_addr_offset = r'Address offset: (?P<offset>0x[0-9A-Z]{2,3})'
3131
regexs = (
3232
('#define hex', re.compile(r'#define +(?P<id>[A-Z0-9_]+) +\(\(uint32_t\)(?P<hex>0x[0-9A-F]+)\)($| +/\*)')),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy