Philipp Stephani
4bbd5424a2
Checkdoc: use syntax functions instead of regex
...
In checkdoc.el, get rid of the error-prone regex to find definition
forms, and use existing syntax-based navigation functions instead.
This fixes a corner case with one-argument `defvar' forms.
* lisp/emacs-lisp/checkdoc.el (checkdoc--next-docstring): New function.
(checkdoc-next-docstring, checkdoc-defun): Use it.
* test/lisp/emacs-lisp/checkdoc-tests.el (checkdoc-tests--next-docstring):
Add unit test.
2016-12-31 17:30:46 +01:00
..
2016-08-23 22:38:48 +09:00
2016-12-24 14:35:12 +02:00
2016-12-22 10:14:11 -08:00
2016-12-31 17:30:46 +01:00
2016-12-07 12:43:16 -08:00
2016-11-04 15:02:03 -07:00
2016-12-07 12:39:07 -08:00
2016-12-27 11:11:30 -05:00
2016-12-07 12:40:43 -08:00
2016-11-04 15:02:03 -07:00
2016-11-25 12:41:20 +02:00
2016-12-03 19:27:41 -08:00
2016-12-29 13:46:37 -08:00
2016-12-27 20:06:27 +01:00
2016-11-17 22:50:40 -08:00
2016-12-12 17:17:34 -05:00
2016-12-07 12:43:16 -08:00
2016-06-10 00:23:33 -04:00
2016-12-30 15:31:42 +00:00
2016-11-19 14:31:05 -08:00
2016-12-30 10:28:29 +01:00
2016-11-17 00:39:43 +09:00
2016-12-24 21:42:02 -08:00
2016-09-26 13:39:17 -07:00
2016-11-17 22:50:40 -08:00
2016-05-01 18:53:31 -07:00
2016-11-06 00:42:03 -07:00
2016-11-19 14:31:05 -08:00
2016-12-02 13:11:53 -05:00
2016-05-01 19:42:35 +02:00
2016-12-22 10:14:11 -08:00
2016-11-22 15:23:50 +09:00
2016-12-08 13:46:25 +09:00
2016-08-21 04:15:44 -07:00
2016-08-30 20:54:42 -07:00
2016-05-17 23:55:38 +03:00
2016-11-07 19:09:19 +02:00
2016-11-22 13:49:17 +01:00
2016-11-25 12:24:22 +02:00
2016-12-13 22:15:32 +00:00
2016-12-07 12:43:16 -08:00
2016-11-17 22:50:40 -08:00
2016-10-16 22:51:51 -07:00
2016-11-07 19:34:51 +02:00
2016-10-08 16:37:42 +03:00
2016-06-27 19:13:48 +03:00
2016-10-15 23:14:48 -04:00
2016-11-12 21:54:45 -05:00
2016-12-07 11:31:16 -08:00
2016-12-07 12:36:38 -08:00
2016-09-28 13:08:12 -04:00
2016-11-22 15:23:50 +09:00
2016-06-09 20:13:12 -04:00
2016-12-02 14:43:58 +00:00
2016-10-27 08:11:25 -07:00
2016-12-05 22:42:09 -08:00
2016-08-19 11:20:30 +02:00
2016-06-09 17:56:29 +09:00
2016-11-19 14:31:05 -08:00
2016-12-30 15:31:01 +09:00
2016-11-14 13:56:58 +01:00
2016-12-09 10:03:05 +01:00
2016-12-13 22:15:32 +00:00
2016-05-01 19:27:11 +02:00
2016-12-02 20:25:15 -05:00
2016-08-21 11:36:11 +02:00
2016-06-15 10:18:50 -04:00
2016-12-21 15:07:43 -05:00
2016-09-23 16:36:24 +03:00
2016-05-13 07:45:30 -07:00
2016-10-31 20:31:22 -04:00
2016-07-18 02:17:06 +03:00
2016-06-26 10:54:29 +09:00
2016-05-26 11:30:29 +02:00
2016-12-07 12:43:16 -08:00
2016-12-20 17:41:56 +09:00
2016-12-15 15:02:32 +09:00
2016-12-20 17:41:56 +09:00
2016-12-19 09:32:30 +01:00
2016-07-18 02:17:06 +03:00
2016-12-22 10:14:11 -08:00
2016-12-15 21:59:15 -05:00
2016-12-02 12:09:31 +02:00
2016-05-01 19:27:16 +02:00
2016-11-18 11:02:55 +02:00
2016-09-28 13:08:12 -04:00
2016-10-25 12:50:31 -07:00
2016-11-25 12:29:44 +02:00
2016-05-08 02:09:36 +03:00
2016-11-05 11:42:15 +02:00
2016-10-21 13:06:03 -07:00
2016-08-10 00:42:40 -04:00
2016-12-13 22:15:32 +00:00
2016-12-13 22:15:32 +00:00
2016-12-01 06:20:43 -05:00
2016-12-19 11:44:18 -05:00
2016-10-08 16:37:42 +03:00
2016-11-19 14:31:05 -08:00
2016-12-13 22:15:32 +00:00
2016-11-19 14:31:05 -08:00
2016-11-19 14:31:05 -08:00
2016-10-15 23:27:46 -04:00
2016-12-11 21:36:08 -05:00
2016-10-22 13:07:32 +02:00
2016-11-17 00:39:43 +09:00
2016-05-01 19:27:12 +02:00
2016-11-19 14:31:05 -08:00
2016-06-23 17:13:11 -04:00
2016-06-10 00:23:33 -04:00
2016-11-19 14:31:05 -08:00
2016-08-05 14:10:30 -07:00
2016-09-28 13:08:12 -04:00
2016-10-08 16:37:42 +03:00
2016-08-13 23:32:36 -05:00
2016-10-19 12:37:50 +01:00
2016-11-17 18:27:38 -05:00
2016-11-25 12:24:22 +02:00
2016-11-25 21:08:32 +01:00
2016-07-06 06:05:15 +03:00
2016-09-12 21:25:09 +03:00
2016-08-10 10:13:27 +02:00
2016-12-10 17:29:51 -08:00
2016-12-07 20:10:54 -05:00
2016-09-28 13:08:12 -04:00
2016-10-16 22:51:51 -07:00
2016-12-21 15:07:43 -05:00
2016-06-27 22:25:10 +02:00
2016-11-19 14:31:05 -08:00
2016-11-03 20:33:19 +09:00
2016-12-07 12:43:16 -08:00
2016-09-02 11:44:13 -04:00
2016-06-01 13:26:30 -07:00
2016-10-08 16:37:42 +03:00
2016-11-17 22:50:40 -08:00
2016-11-17 00:39:43 +09:00
2016-12-24 09:45:14 -05:00
2016-06-23 17:13:11 -04:00
2016-11-17 22:50:40 -08:00
2016-12-12 10:16:23 +01:00
2016-10-13 14:37:10 -04:00
2016-09-28 13:08:12 -04:00
2016-11-28 19:45:55 +01:00
2016-10-25 23:07:13 -07:00