Fix comment parsing (#12750)

Co-authored-by: Erovia <Erovia@users.noreply.github.com>
master
Zach White 2021-05-03 10:09:53 -07:00 committed by GitHub
parent 0ec438289d
commit 5d27c772fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
#define MATRIX_COLS 16 #define MATRIX_COLS 16
#define BACKLIGHT_PIN F5 #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 MATRIX_COL_PINS { C5,C3,C1,E1,D6,D2,B7,B3,F6,F7,F3,A5,A1,E2,C7,A6 }
#define UNUSED_PINS #define UNUSED_PINS
#define DIODE_DIRECTION ROW2COL #define DIODE_DIRECTION ROW2COL

View File

@ -8,7 +8,7 @@ from milc import cli
from qmk.comment_remover import comment_remover from qmk.comment_remover import comment_remover
default_key_entry = {'x': -1, 'y': 0, 'w': 1} 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) multi_comment_regex = re.compile(r'/\*(.|\n)*?\*/', re.MULTILINE)