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));