From 384da2d0653108fb96af9ca97506714324df95e2 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 8 Apr 2024 20:27:53 +0100 Subject: [PATCH] Add test for multiple modules --- test/corpus/modules.txt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/test/corpus/modules.txt b/test/corpus/modules.txt index 73d87bc..1eb7e9a 100644 --- a/test/corpus/modules.txt +++ b/test/corpus/modules.txt @@ -107,6 +107,40 @@ foo { (identifier) (interpreted_string_literal))))))) +================================================================================ +Multiple modules +================================================================================ + +foo { + answer: 42, + value: "test", +} + +bar { + baz: "qux", + done: true, +} + +-------------------------------------------------------------------------------- + +(source_file + (module + (identifier) + (property + (identifier) + (integer_literal)) + (property + (identifier) + (interpreted_string_literal))) + (module + (identifier) + (property + (identifier) + (interpreted_string_literal)) + (property + (identifier) + (boolean_literal)))) + ================================================================================ Rogue comma ================================================================================