diff options
author | Zach White <[email protected]> | 2021-01-08 00:00:15 -0800 |
---|---|---|
committer | Zach White <[email protected]> | 2021-01-08 08:40:23 -0800 |
commit | 30331b383f9ef4620e47aa07e4f9af7fae9d30b3 (patch) | |
tree | 4d1a12b52d99aa3c31f6a859c9a71959159d58de /lib/python/qmk/c_parse.py | |
parent | a828a82d59b6205a56f7d42d51217f13ffbcb0d5 (diff) | |
download | qmk_firmware-30331b383f9ef4620e47aa07e4f9af7fae9d30b3.tar.gz qmk_firmware-30331b383f9ef4620e47aa07e4f9af7fae9d30b3.zip |
fix bugs triggered by certain boards
Diffstat (limited to 'lib/python/qmk/c_parse.py')
-rw-r--r-- | lib/python/qmk/c_parse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/c_parse.py b/lib/python/qmk/c_parse.py index 67e196f0ea..0338484ec7 100644 --- a/lib/python/qmk/c_parse.py +++ b/lib/python/qmk/c_parse.py @@ -9,7 +9,7 @@ from qmk.comment_remover import comment_remover default_key_entry = {'x': -1, 'y': 0, 'w': 1} single_comment_regex = re.compile(r' */[/*].*$') -multi_comment_regex = re.compile(r'/\*(.|\n)*\*/', re.MULTILINE) +multi_comment_regex = re.compile(r'/\*(.|\n)*?\*/', re.MULTILINE) def strip_line_comment(string): @@ -103,7 +103,7 @@ def parse_config_h_file(config_h_file, config_h=None): if config_h_file.exists(): config_h_text = config_h_file.read_text() - config_h_text = config_h_text.replace('\\\n', '') + config_h_text = config_h_text.replace('\\\n', '') # Why are you here? config_h_text = strip_multiline_comment(config_h_text) for linenum, line in enumerate(config_h_text.split('\n')): |