From 5eb7acd8b133aa4b1e8aa3e3e362a11691095c0b Mon Sep 17 00:00:00 2001 From: Tangent Wantwight Date: Fri, 4 Aug 2023 17:43:42 -0400 Subject: [PATCH] Better comment logic --- notcl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notcl.js b/notcl.js index ca02212..d1c85ba 100644 --- a/notcl.js +++ b/notcl.js @@ -10,7 +10,7 @@ var Notcl = (() => { const InterCommandWhitespace = Regex(/\s+/y).expects("whitespace"); - const Comment = Regex(/#.*\n/y).expects("#"); + const Comment = Regex(/#[^\n]*/y).expects("#"); const PreCommand = AtLeast(0, Choose(InterCommandWhitespace, Comment));