summaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorZach White <skullydazed@gmail.com>2021-05-03 10:09:53 -0700
committerGitHub <noreply@github.com>2021-05-03 19:09:53 +0200
commit5d27c772fdd1740b3d03b5671e1d31dccbf0447e (patch)
treeed7a5d67b6edcc2e449c2a9e3e77d6b093d7876f /lib/python
parent0ec438289d8d0103a5fd1a6698c95716466ed9d3 (diff)
downloadqmk_firmware-5d27c772fdd1740b3d03b5671e1d31dccbf0447e.tar.gz
qmk_firmware-5d27c772fdd1740b3d03b5671e1d31dccbf0447e.zip
Fix comment parsing (#12750)
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/qmk/c_parse.py2
1 files changed, 1 insertions, 1 deletions
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)