linter: Print debugging message if match fails
This commit makes split_match print a debugging message
if the match completely fails, meaning that no groups
have been captured.
@@ -1776,6 +1776,7 @@ class Linter(metaclass=LinterMeta):
return match, line, col, error, warning, message, near
else:
+ persist.debug('No match for {}'.format(self.regex))
return match, None, None, None, None, '', None
def run(self, cmd, code):
