hylang / hy-mode

Hy mode for Emacs
GNU General Public License v3.0
189 stars 47 forks source link

Use constant-face for :keywords #2

Closed algernon closed 11 years ago

algernon commented 11 years ago

This implements highlighting (with constant-face) for :keyword things.

jd commented 11 years ago

@algernon ping?

algernon commented 11 years ago

Soon. I'll try to update the PR today.

algernon commented 11 years ago

The above commit does the right thing in 99% of cases. It fails on :foo(), :foo[] and :foo{}, where the parens are highlighted differently, possibly due to another mode overriding my regexp - not sure about that. But in all honesty, whoever uses such awkward :keywords, deserves no highlighting.

I tried a few unicode symbols, from the set that \sw+ didn't match, and they were highlighted with the correct face.