From 8e31a2aadf4990240a4e9285e7643a1b8fc54d8e Mon Sep 17 00:00:00 2001 From: Ville Penttinen Date: Sat, 9 Dec 2023 07:17:37 +0100 Subject: [PATCH] Allow fun as an identifier --- src/Visp.Compiler/Syntax/SynWriter.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Visp.Compiler/Syntax/SynWriter.fs b/src/Visp.Compiler/Syntax/SynWriter.fs index 02f9bbf..f013d25 100644 --- a/src/Visp.Compiler/Syntax/SynWriter.fs +++ b/src/Visp.Compiler/Syntax/SynWriter.fs @@ -163,7 +163,7 @@ module Write = let reservedWords = - [ "then"; "done"; "val"; "end"; "begin"; "mod"; "to"; "with" ] |> Set.ofList + [ "fun"; "then"; "done"; "val"; "end"; "begin"; "mod"; "to"; "with" ] |> Set.ofList let escapableChars = [ '?'; '-'; '+'; '*'; '/'; '!'; ':' ] |> Set.ofList