diff options
| author | Alan Mackenzie | 2020-10-02 21:21:06 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2020-10-02 21:21:06 +0000 |
| commit | d22fe0ec3a321ea222ad2f25c52c7eddea4375df (patch) | |
| tree | c0d06e97a95b0aedcbfa08fb3d1fd4b0ad198f42 /test/data | |
| parent | 0ade20f49f80d2d93f596ba9dfa3f1309ad84126 (diff) | |
| download | emacs-d22fe0ec3a321ea222ad2f25c52c7eddea4375df.tar.gz emacs-d22fe0ec3a321ea222ad2f25c52c7eddea4375df.zip | |
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.
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/syntax-comments.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/data/syntax-comments.txt b/test/data/syntax-comments.txt index e10c1450e46..6f595e4d8dc 100644 --- a/test/data/syntax-comments.txt +++ b/test/data/syntax-comments.txt | |||
| @@ -25,18 +25,19 @@ | |||
| 25 | 25 | ||
| 26 | /* C Comments within lists */ | 26 | /* C Comments within lists */ |
| 27 | 59}59 | 27 | 59}59 |
| 28 | 50{ /* comment */ }50 | 28 | 50{ /*70 comment */71 }50 |
| 29 | 51{ /**/ }51 | 29 | 51{ /**/ }51 |
| 30 | 52{ // comment | 30 | 52{ //72 comment |
| 31 | }52 | 31 | 73}52 |
| 32 | 53{ // | 32 | 53{ // |
| 33 | }53 | 33 | }53 |
| 34 | 54{ // \ | 34 | 54{ //74 \ |
| 35 | }54 | 35 | }54 |
| 36 | 55{/* */}55 | 36 | 55{/* */}55 |
| 37 | 56{ /* \*/ }56 | 37 | 56{ /*76 \*/ }56 |
| 38 | 57*/57 | 38 | 57*/77 |
| 39 | 58}58 | 39 | 58}58 |
| 40 | 60{ /*78 \\*/79}60 | ||
| 40 | 41 | ||
| 41 | 42 | ||
| 42 | /* Straight Pascal comments (not nested) */ | 43 | /* Straight Pascal comments (not nested) */ |