Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
ae580355
Commit
ae580355
authored
Nov 04, 2015
by
Tony Abboud
Committed by
Damien George
Nov 06, 2015
Browse files
stmhal: Add missing regex property for parsing header comments
parent
8b8d189b
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/make-stmconst.py
View file @
ae580355
...
...
@@ -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]+)\)($| +/\*)'
)),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment