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

Syntax highlighting wrong for :: in ternary statement #356

Closed
roblourens opened this issue Feb 22, 2019 · 1 comment · Fixed by #369
Closed

Syntax highlighting wrong for :: in ternary statement #356

roblourens opened this issue Feb 22, 2019 · 1 comment · Fixed by #369

Comments

@roblourens
Copy link
Contributor

roblourens commented Feb 22, 2019

With this code:

<?php
true ? A::a : A::b;

See that the first : is colored differently from the second, because it is interpreted as the : in the ternary statement.

image

microsoft/vscode#69156

Edit by @rsese to add Atom screenshot

php-ternary

@rsese
Copy link

rsese commented Feb 26, 2019

👍 reproduced with 1.34.0 on macOS 10.12.6:

php-ternary

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

Successfully merging a pull request may close this issue.

2 participants