]> git.eshelyaron.com Git - emacs.git/commit
Enhance syntax-tests.el to test comments in parse-partial-sexp
authorAlan Mackenzie <acm@muc.de>
Fri, 2 Oct 2020 21:21:06 +0000 (21:21 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 2 Oct 2020 21:21:06 +0000 (21:21 +0000)
commitd22fe0ec3a321ea222ad2f25c52c7eddea4375df
treec0d06e97a95b0aedcbfa08fb3d1fd4b0ad198f42
parent0ade20f49f80d2d93f596ba9dfa3f1309ad84126
Enhance syntax-tests.el to test comments in parse-partial-sexp

This now tests the interface between parse-partial-sexp and the low level
comment function in syntax.c

* test/src/syntax-tests.el (syntax-comments-midpoint): New function.
(syntax-pps-comments): New macro.
(top level): Two new syntax-br-comments tests and five new syntax-pps-comments
tests.

* test/data/syntax-comments.txt (top level): Amend some test fragments and add
some more.
test/data/syntax-comments.txt
test/src/syntax-tests.el