mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 19:10:37 -08:00
* test/src/syntax-tests: Add a new section testing some aspects of comment handling in syntax.c. This needs further enhancement. It uses .... * test/data/syntax-comments.txt: A new test file.
66 lines
763 B
Text
66 lines
763 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
|
|
|
|
|
|
/* 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
|
|
|
|
/* Comments within lists */
|
|
50{ /* comment */ }50
|
|
51{ /**/ }51
|
|
52{ // comment
|
|
}52
|
|
53{ //
|
|
}53
|
|
54{ //
|
|
}54
|
|
55{/* */}55
|
|
56{ /* \*/ }56
|
|
57*/57
|
|
58}58
|
|
|
|
Local Variables:
|
|
mode: fundamental
|
|
eval: (set-syntax-table (make-syntax-table))
|
|
End:
|