quiqueg / Swift-Sublime-Package

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

Syntax highlighting fails with protocol methods #14

Open cjwirth opened 10 years ago

cjwirth commented 10 years ago

I was writing some code, and noticed that the syntax highlighting would mess up after protocol function declarations, because they are missing the {} that is usually required for functions.

Broken Syntax Highlighting

quiqueg commented 9 years ago

Hey thanks for pointing this out. I actually never got around to adding full protocol declarations to the language syntax—right now the syntax just detects the "protocol" keyword and moves on. I'll look into adding a proper protocol declaration to the syntax definition.