mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 07:11:34 -08:00
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.
68 lines
804 B
Text
68 lines
804 B
Text
/* This file is a test file for tests of the comment handling in src/syntax.c.
|
|
This includes the testing of comments which figure in parse-partial-sexp
|
|
and scan-lists. */
|
|
|
|
/* Straight C comments */
|
|
1/* comment */1
|
|
2/**/2
|
|
3// comment
|
|
3
|
|
4//
|
|
4
|
|
5/*/5
|
|
6*/6
|
|
7/* \*/7
|
|
8*/8
|
|
9/* \\*/9
|
|
10*/10
|
|
11// \
|
|
12
|
|
11
|
|
13// \\
|
|
14
|
|
13
|
|
15/* /*/15
|
|
|
|
/* C Comments within lists */
|
|
59}59
|
|
50{ /*70 comment */71 }50
|
|
51{ /**/ }51
|
|
52{ //72 comment
|
|
73}52
|
|
53{ //
|
|
}53
|
|
54{ //74 \
|
|
}54
|
|
55{/* */}55
|
|
56{ /*76 \*/ }56
|
|
57*/77
|
|
58}58
|
|
60{ /*78 \\*/79}60
|
|
|
|
|
|
/* Straight Pascal comments (not nested) */
|
|
20}20
|
|
21{ Comment }21
|
|
22{}22
|
|
23{
|
|
}23
|
|
24{
|
|
25{25
|
|
}24
|
|
26{ \}26
|
|
|
|
|
|
/* Straight Lisp comments (not nested) */
|
|
30
|
|
30
|
|
31; Comment
|
|
31
|
|
32;;;;;;;;;
|
|
32
|
|
33; \
|
|
33
|
|
|
|
Local Variables:
|
|
mode: fundamental
|
|
eval: (set-syntax-table (make-syntax-table))
|
|
End:
|