aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorAlan Mackenzie2020-10-02 17:25:02 +0000
committerAlan Mackenzie2020-10-02 17:25:02 +0000
commit6a6466031839d5fb4efadbfe2cdbd5ba469dd9c6 (patch)
treed1a0593271b24616450e75dcac17a742ebc5d3f5 /test/data
parent70f8d9a8683a27ac00a2e74c15c0b5b5c6f9bbe2 (diff)
downloademacs-6a6466031839d5fb4efadbfe2cdbd5ba469dd9c6.tar.gz
emacs-6a6466031839d5fb4efadbfe2cdbd5ba469dd9c6.zip
Enhance syntax-tests.el to test comments in scan-lists
This now tests the interface between scan_lists and the comment functions. * test/src/syntax-tests.el (syntax-br-comments): New macro. ({-in, ;-in, /*-in): Set parse-sexp-ignore-comments to t. (top level): Add 15 tests for comments inside brace lists. * test/data/syntax-comments.txt (top level): Amend some test fragments.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/syntax-comments.txt29
1 files changed, 15 insertions, 14 deletions
diff --git a/test/data/syntax-comments.txt b/test/data/syntax-comments.txt
index 74e08b1b65b..e10c1450e46 100644
--- a/test/data/syntax-comments.txt
+++ b/test/data/syntax-comments.txt
@@ -23,6 +23,21 @@
2313 2313
2415/* /*/15 2415/* /*/15
25 25
26/* C Comments within lists */
2759}59
2850{ /* comment */ }50
2951{ /**/ }51
3052{ // comment
31}52
3253{ //
33}53
3454{ // \
35}54
3655{/* */}55
3756{ /* \*/ }56
3857*/57
3958}58
40
26 41
27/* Straight Pascal comments (not nested) */ 42/* Straight Pascal comments (not nested) */
2820}20 4320}20
@@ -46,20 +61,6 @@
4633; \ 6133; \
4733 6233
48 63
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: 64Local Variables:
64mode: fundamental 65mode: fundamental
65eval: (set-syntax-table (make-syntax-table)) 66eval: (set-syntax-table (make-syntax-table))