summaryrefslogtreecommitdiff
path: root/lib/python/qmk/c_parse.py
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-07-08 22:48:48 +0100
committerGitHub <noreply@github.com>2022-07-08 22:48:48 +0100
commit81d317aa8768fe53a6cca040297231278b06af64 (patch)
tree7c96b2aee289b577879cbcab404c8eed933481be /lib/python/qmk/c_parse.py
parentb0c3d61c171886aab0b0052a4352e6befc5ce87a (diff)
Fix rgbkb/sol/rev2 build issues (#17601)
Diffstat (limited to 'lib/python/qmk/c_parse.py')
-rw-r--r--lib/python/qmk/c_parse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/qmk/c_parse.py b/lib/python/qmk/c_parse.py
index 4b49b8d4e9..c14eb490fa 100644
--- a/lib/python/qmk/c_parse.py
+++ b/lib/python/qmk/c_parse.py
@@ -258,6 +258,9 @@ def _parse_led_config(file, matrix_cols, matrix_rows):
position_raw.append(_coerce_led_token(_type, value))
if section == 3 and bracket_count == 2:
flags.append(_coerce_led_token(_type, value))
+ elif _type in [Token.Comment.Preproc]:
+ # TODO: Promote to error
+ return None
# Slightly better intrim format
matrix = list(_get_chunks(matrix_raw, matrix_cols))