diff options
author | Zach White <skullydazed@gmail.com> | 2021-05-03 10:09:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 19:09:53 +0200 |
commit | 5d27c772fdd1740b3d03b5671e1d31dccbf0447e (patch) | |
tree | ed7a5d67b6edcc2e449c2a9e3e77d6b093d7876f | |
parent | 0ec438289d8d0103a5fd1a6698c95716466ed9d3 (diff) | |
download | qmk_firmware-5d27c772fdd1740b3d03b5671e1d31dccbf0447e.tar.gz qmk_firmware-5d27c772fdd1740b3d03b5671e1d31dccbf0447e.zip |
Fix comment parsing (#12750)
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
-rw-r--r-- | keyboards/monstargear/xo87/rgb/config.h | 2 | ||||
-rw-r--r-- | lib/python/qmk/c_parse.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/monstargear/xo87/rgb/config.h b/keyboards/monstargear/xo87/rgb/config.h index 0d92c274e4..83eee83492 100644 --- a/keyboards/monstargear/xo87/rgb/config.h +++ b/keyboards/monstargear/xo87/rgb/config.h @@ -30,7 +30,7 @@ #define MATRIX_COLS 16 #define BACKLIGHT_PIN F5 -#define MATRIX_ROW_PINS { E6,E7, E3, B0, B1 ,A2}// +#define MATRIX_ROW_PINS { E6,E7, E3, B0, B1 ,A2} #define MATRIX_COL_PINS { C5,C3,C1,E1,D6,D2,B7,B3,F6,F7,F3,A5,A1,E2,C7,A6 } #define UNUSED_PINS #define DIODE_DIRECTION ROW2COL diff --git a/lib/python/qmk/c_parse.py b/lib/python/qmk/c_parse.py index d4f39c8839..991373d569 100644 --- a/lib/python/qmk/c_parse.py +++ b/lib/python/qmk/c_parse.py @@ -8,7 +8,7 @@ from milc import cli from qmk.comment_remover import comment_remover default_key_entry = {'x': -1, 'y': 0, 'w': 1} -single_comment_regex = re.compile(r' */[/*].*$') +single_comment_regex = re.compile(r'\s+/[/*].*$') multi_comment_regex = re.compile(r'/\*(.|\n)*?\*/', re.MULTILINE) |