Better comment logic
This commit is contained in:
parent
b287b1d9b6
commit
5eb7acd8b1
1 changed files with 1 additions and 1 deletions
2
notcl.js
2
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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue