Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't parse commented lines #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Don't parse commented lines #9

wants to merge 1 commit into from

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