aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorAlan Mackenzie2020-10-01 20:35:40 +0000
committerAlan Mackenzie2020-10-01 20:35:40 +0000
commitda591df90ae95a6bc34f43b1594fc58a91967304 (patch)
treeea1d997f7a393626e25fc373435ab29c6218f798 /test/data
parent306fcc59dcd7d2a6ec8338dfff520a89d7a9121d (diff)
downloademacs-da591df90ae95a6bc34f43b1594fc58a91967304.tar.gz
emacs-da591df90ae95a6bc34f43b1594fc58a91967304.zip
Enhance syntax-tests.el to test some comment character handling.
* 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.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/syntax-comments.txt66
1 files changed, 66 insertions, 0 deletions
diff --git a/test/data/syntax-comments.txt b/test/data/syntax-comments.txt
new file mode 100644
index 00000000000..74e08b1b65b
--- /dev/null
+++ b/test/data/syntax-comments.txt
@@ -0,0 +1,66 @@
1/* This file is a test file for tests of the comment handling in src/syntax.c.
2 This includes the testing of comments which figure in parse-partial-sexp
3 and scan-lists. */
4
5/* Straight C comments */
61/* comment */1
72/**/2
83// comment
93
104//
114
125/*/5
136*/6
147/* \*/7
158*/8
169/* \\*/9
1710*/10
1811// \
1912
2011
2113// \\
2214
2313
2415/* /*/15
25
26
27/* Straight Pascal comments (not nested) */
2820}20
2921{ Comment }21
3022{}22
3123{
32}23
3324{
3425{25
35}24
3626{ \}26
37
38
39/* Straight Lisp comments (not nested) */
4030
4130
4231; Comment
4331
4432;;;;;;;;;
4532
4633; \
4733
48
49/* Comments within lists */
5050{ /* comment */ }50
5151{ /**/ }51
5252{ // comment
53}52
5453{ //
55}53
5654{ //
57}54
5855{/* */}55
5956{ /* \*/ }56
6057*/57
6158}58
62
63Local Variables:
64mode: fundamental
65eval: (set-syntax-table (make-syntax-table))
66End: