Skip to content

Don't parse commented lines#9

Open
neauoire wants to merge 1 commit intomaryrosecook:masterfrom
neauoire:master
Open

Don't parse commented lines#9
neauoire wants to merge 1 commit intomaryrosecook:masterfrom
neauoire:master

Conversation

@neauoire
Copy link

@neauoire neauoire commented May 9, 2019

A tiny PR so commented lines(lines starting with ;) will not be tokenized.
I was going to go over this and convert all var, into const, would that be something you'd like to merge as well?

@sli
Copy link

sli commented Sep 24, 2019

Just a note, this regular expression breaks if the commented line has leading whitespace. This slight modification fixes that:

/^[\s]*\;.*\n?/gm

@neauoire
Copy link
Author

yes!!
Thank you, I'll mirror that on my copy of the parser. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants