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

fix #1799: make scanner recognize regex #1806

Merged
merged 4 commits into from
Mar 4, 2015
Merged

fix #1799: make scanner recognize regex #1806

merged 4 commits into from
Mar 4, 2015

Conversation

dgnorton
Copy link
Contributor

@dgnorton dgnorton commented Mar 2, 2015

Change the regex delimiter from single quotes to / and make
the scanner recognize regex tokens.

Single quotes are used for string literals. Using a unique delimiter for
regular expression literals allows the scanner to recognize regular
expression tokens, which is inline with the way the rest of the
scanner / parser work.

TODO:

  • Update docs
  • Update changelog

dgnorton added 4 commits March 3, 2015 09:32
Change the regex delimiter from single quotes to back ticks (`) and make
the scanner recognize regex tokens.

Single quotes are used for string literals. Using a unique delimiter for
regular expression literals allows the scanner to recognize regular
expression tokens, which is inline with the way the rest of the
scanner / parser work.
@pauldix
Copy link
Member

pauldix commented Mar 4, 2015

LGTM, 🚢

dgnorton added a commit that referenced this pull request Mar 4, 2015
fix #1799: make scanner recognize regex
@dgnorton dgnorton merged commit 88a4852 into master Mar 4, 2015
@dgnorton dgnorton deleted the fix-1799 branch March 4, 2015 13:44
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