Skip to content

Commit

Permalink
Fix comment parsing (qmk#12750)
Browse files Browse the repository at this point in the history
Co-authored-by: Erovia <[email protected]>
  • Loading branch information
skullydazed and Erovia authored May 3, 2021
1 parent 1bac33d commit c8929c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/qmk/c_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
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)


Expand Down

0 comments on commit c8929c5

Please sign in to comment.