From e498abb6709f9d9ca9890bacf93e68e587df7403 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Sun, 28 Oct 2018 16:41:30 +0100 Subject: [PATCH] Add test for a comment that is instantly closed --- lexer/instantly_closed_comment.mj | 1 + lexer/instantly_closed_comment.mj.out | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 lexer/instantly_closed_comment.mj create mode 100644 lexer/instantly_closed_comment.mj.out diff --git a/lexer/instantly_closed_comment.mj b/lexer/instantly_closed_comment.mj new file mode 100644 index 0000000..83d3126 --- /dev/null +++ b/lexer/instantly_closed_comment.mj @@ -0,0 +1 @@ +/**/ 42 ident assert == diff --git a/lexer/instantly_closed_comment.mj.out b/lexer/instantly_closed_comment.mj.out new file mode 100644 index 0000000..7865c3d --- /dev/null +++ b/lexer/instantly_closed_comment.mj.out @@ -0,0 +1,5 @@ +integer literal 42 +identifier ident +assert +== +EOF -- 2.22.2