Better comment logic

This commit is contained in:
Tangent Wantwight 2023-08-04 17:43:42 -04:00
parent b287b1d9b6
commit 5eb7acd8b1

View file

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