microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 237 forks source link

Decorators are not correctly highlighted #479

Open taxilian opened 8 years ago

taxilian commented 8 years ago

When using a decorator in typescript the decorator should be highlighted as a function, since it is an implicit function call.

Currently, @foo and @foo() are not highlighted the same, but since both are clearly decorator calls they should be; in particular @foo is currently not highlighted any particular color.

I tried to figure out how to add this myself but haven't been successful so far -- I'm just not familiar with how tmLanguage files work :-/ If you want to give me tips to get started I'm willing to try to do this myself

DanielRosenwasser commented 8 years ago

Hey @taxilian, we actually have an open issue at https://github.com/Microsoft/TypeScript-TmLanguage/issues/8. There's a PR out for it as well at https://github.com/Microsoft/TypeScript-TmLanguage/pull/169. Thanks!

DanielRosenwasser commented 8 years ago

Reopening to track the issue here.

taxilian commented 8 years ago

awesome. That makes me very happy =]