From ddb4f693be9893c9499ff12e25ddd37768037dcf Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 9 Apr 2024 12:22:30 +0100 Subject: [PATCH] Add test for 'select' as an identifier --- test/corpus/select.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 92f1342..fb76530 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -192,3 +192,26 @@ foo = select(some_unknown_type("CONDITION"), { (interpreted_string_literal)) (interpreted_string_literal)) (ERROR)) + +================================================================================ +Select as an identifier +================================================================================ + +select = 42 + +foo { + select: false, +} + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (integer_literal)) + (module + (identifier) + (property + (identifier) + (boolean_literal))))