PHP syntax problem with 'trait' keyword


I found a syntax problem.

It seems Atom is regarding ‘trait’ as a value.(is it intended?)

I’d tried solve this problem on my own. but, the grammar file(grammars/php.json) is too huge to find where should I fix.

What should I do to fix this?


I’ve just fixed it!!

What i did is…

  1. I copied the block at between 941th and 1041th lines in grammars/php.json.
  2. I replaced ‘(class)’ of the copied one with ‘(trait)’.
  3. And, It works.
    Is it a correct way?
    Please give me some feedback.

Sorry for my poor english skill…