summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2020-10-02 17:25:02 +0000
committerAlan Mackenzie <acm@muc.de>2020-10-02 17:25:02 +0000
commit6a6466031839d5fb4efadbfe2cdbd5ba469dd9c6 (patch)
treed1a0593271b24616450e75dcac17a742ebc5d3f5 /test/data
parent70f8d9a8683a27ac00a2e74c15c0b5b5c6f9bbe2 (diff)
downloademacs-6a6466031839d5fb4efadbfe2cdbd5ba469dd9c6.tar.gz
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 @@
13
15/* /*/15
+/* C Comments within lists */
+59}59
+50{ /* comment */ }50
+51{ /**/ }51
+52{ // comment
+}52
+53{ //
+}53
+54{ // \
+}54
+55{/* */}55
+56{ /* \*/ }56
+57*/57
+58}58
+
/* Straight Pascal comments (not nested) */
20}20
@@ -46,20 +61,6 @@
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))