Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Sep 21, 2015

In the expression a ? /b/ : /c/, the first regexp wasn't recognized as such, but was tokenized as a sequence of operators instead. This fixes it by allowing regexp to immediately follow the ? operator.

This fixes the syntax highlighting issue in Atom as well as on GitHub.com that manifests itself like this:

screen shot 2015-09-21 at 5 48 52 pm

This is related to #93

In the expression `a ? /b/ : /c/`, the first regexp wasn't recognized as
such, but was tokenized as a series of operators. This fixes it by
allowing regexp to immediately follow the `?` operator, not just `:`.
winstliu pushed a commit that referenced this pull request Sep 21, 2015
Allow regexp to immediately follow `?` ternary operator
@winstliu winstliu merged commit 7b14bbb into atom:master Sep 21, 2015
@winstliu
Copy link
Contributor

Thanks!

@mislav mislav deleted the regexp-in-ternary branch September 21, 2015 15:59
@mislav
Copy link
Contributor Author

mislav commented Sep 21, 2015

Thanks for the quick merge! ✨

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants