atom / one-dark-syntax

Atom One dark syntax theme
MIT License
443 stars 236 forks source link

PHP highlighting messed up in Atom Beta (1.21.0) #100

Closed martinbean closed 7 years ago

martinbean commented 7 years ago

Prerequisites

Description

The syntax highlighting of PHP files seems to be messed up in Atom Beta (version 1.21.0), compared to previous, stable versions of Atom.

Steps to Reproduce

  1. Open a PHP file in Atom (stable). Syntax highlighting is expected.
  2. Open the same file in Atom Beta. Syntax highlighting is different.

Expected behavior: Same syntax highlighting as the stable version of Atom.

Actual behavior: Difference in syntax highlighting when compared to stable version of Atom.

Reproduces how often: Every time.

Versions

1.21.0

Additional Information

Screen-shot of PHP file in stable version of Atom:

screen shot 2017-09-12 at 21 59 20

Screen-shot of same PHP file in Atom Beta:

screen shot 2017-09-12 at 22 00 06

Differences:

I’ve only tried this file, so I don’t know if there are any more syntax highlighting inconsistencies between the stable and beta versions of Atom.

martinbean commented 7 years ago

Seems the trait syntax messes up further syntax highlighting too:

screen shot 2017-09-12 at 22 20 03

50Wliu commented 7 years ago

I believe both issues have already been fixed, and I will be looking into creating a patch release.

martinbean commented 7 years ago

@50Wliu Awesome! Thanks for addressing this Issue so quickly.

Is there an ETA on the patch version?

martinbean commented 7 years ago

These styling issues have made their way in the stable version of Atom for me now 😢

50Wliu commented 7 years ago

I can't commit to a timeframe, but I can confirm that a hotfix will be released for these issues.

mkarnicki commented 7 years ago

Looking forward to it, @50Wliu . I can confirm 1.20.0 is also affected.

screen shot 2017-09-14 at 20 14 49
stefblokdijk commented 6 years ago

Hey, i'm still having this issue. Didn't found any update yet that fixed this.

I made a little css fix to go back what I was used to. Just add the css code to the atom styling.

CSS Fix

/**
 * Fix for PHP Language
 */
.syntax--use .syntax--class.syntax--php,
.syntax--method-call .syntax--entity.syntax--name.syntax--function,
.syntax--punctuation.syntax--definition.syntax--class.syntax--bracket.syntax--curly.syntax--php,
.syntax--punctuation.syntax--definition.syntax--class.syntax--bracket.syntax--curly.syntax--php,
.syntax--namespace + .syntax--class.syntax--php {
    color: #abb2bb;
}

.syntax--comment .syntax--class.syntax--php {
    color: #5c635f;
}

Before

before

After

after

martinbean commented 6 years ago

Is it possible to get an ETA for the “official” fix? As this has been “broken” for some weeks now.