Hello,
I found that the commit 'b5b997b95' breaks a valid defvar, see
attached example file 'b.el'. If I run 'M-x checkdoc' in Emacs after
that commit (I tried in Emacs compiled from commit 112460da70) it shows
me error message (copy-pasted from *Message* buffer):
forward-sexp: Scan error: "Containing _expression_ ends prematurely", 60, 61
while before that commit (I tested in Emacs compiled from commit
e5ef59b87d) it works like a charm.
Thanks for reporting. I've attached a patch that replaces the regex completely.