quiqueg / Swift-Sublime-Package

A Sublime Text package for the Swift programming language
MIT License
145 stars 26 forks source link

Missing Attributes #4

Closed iamsilvio closed 10 years ago

iamsilvio commented 10 years ago

first of all -> well Done! You were really fast with your implementation.

There are some class, protocol and property attributes that are not highlighted.

@IBAction @IBOutlet

@IBDesignable @IBInspectable

@class_protocol @lazy @objc

quiqueg commented 10 years ago

Thanks! Yes, attributes are on my short list of things to implement next, I'll have them done after work today

quiqueg commented 10 years ago

Added in b297a44.

According to the language grammar, any valid identifier can be an attribute, so I wrote the syntax highlighter so that it doesn't depend on a specific set of known identifiers—@ plus any valid identifier character will signify a valid attribute. (Though it doesn't support Unicode characters yet.. I'm still working on a regex to do that)

Thanks for the feedback!