diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-14 15:22:36 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-14 15:22:36 +0100 |
commit | a649d726063d548bbf5f05aef8c4420ddf0cfe6e (patch) | |
tree | 48aefc2bc3df6caccf869c96a8c21f9819e46f9e /py/makeqstrdata.py | |
parent | 2243d68345cc3446b26c792c1424c81bcf858216 (diff) | |
download | micropython-a649d726063d548bbf5f05aef8c4420ddf0cfe6e.tar.gz micropython-a649d726063d548bbf5f05aef8c4420ddf0cfe6e.zip |
py/makeqstrdata: Add special case to handle \n qstr.
Diffstat (limited to 'py/makeqstrdata.py')
-rw-r--r-- | py/makeqstrdata.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py index 325207c05a..c00ec1eb28 100644 --- a/py/makeqstrdata.py +++ b/py/makeqstrdata.py @@ -93,6 +93,12 @@ def parse_input_headers(infiles): # get the qstr value qstr = match.group(1) + + # special case to specify control characters + if qstr == '\\n': + qstr = '\n' + + # work out the corresponding qstr name ident = qstr_escape(qstr) # don't add duplicates |