biletskyy / flatwhite-syntax

A light syntax theme for Atom
https://atom.io/themes/flatwhite-syntax
MIT License
168 stars 14 forks source link

adds CoffeeScript lang support #3

Closed PatrickLerner closed 8 years ago

PatrickLerner commented 8 years ago

Support coffee script with the build in style. It's sadly not perfect because the semantic classes are not always consistently or correctly applied in JS as they are in JS. I had to do a workaround so the keys of the hash in this syntax work:

hash =
  this: 'is a short'
  syntax: 'for hashes'
  in: 'coffee script'

See: .leading-whitespace + .variable.assignment

That produces incorrect output in some other syntax styles, however. Not sure how to go about this. Looks overall acceptable I think, however, although it's kind of frustrating.

screen shot 2016-08-13 at 2 24 42