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

Fix for improper highlighting within the ternary operator #179

Merged
merged 3 commits into from
Dec 7, 2016

Conversation

zoo1
Copy link
Contributor

@zoo1 zoo1 commented Dec 1, 2016

Now supports function and member access tokenizing. add corresponding specs

fix for #178

Before:
ternbefore

After:
ternafter

…ts function and member access tokenizing. add corresponding specs
@50Wliu
Copy link
Contributor

50Wliu commented Dec 1, 2016

/cc @thomasjo for sanity check :)

@thomasjo
Copy link
Contributor

thomasjo commented Dec 1, 2016

@zoo1 Does this handle the pointer dereferencing scenario as well? Would be awesome to have a test added for that at least; e.g.

a ? b->c : d

@zoo1
Copy link
Contributor Author

zoo1 commented Dec 2, 2016

@thomasjo it now does! A spec has been added to cover the functionality.

@thomasjo
Copy link
Contributor

thomasjo commented Dec 2, 2016

@zoo1 Beautiful stuff! Thanks 🙇

'include': '$self'
}
{
'include': '#libc'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these two be moved above $self? I think generally $self should come last in patterns as sort of a default fallback.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@50Wliu 👍

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

Successfully merging this pull request may close these issues.

3 participants