Last active
September 14, 2015 20:31
-
-
Save romainmenke/b3661983f6d2cb2e6cb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SyntaxGroup { | |
var wordCollection : [String] // it will search for these words | |
var type : String // purely a reference | |
var color : UIColor // the words will get this color | |
init(wordCollection_I : [String], type_I : String, color_I: UIColor) { | |
wordCollection = wordCollection_I | |
type = type_I | |
color = color_I | |
} | |
} | |
class SyntaxRange { | |
var range : NSRange // the ranges of found words | |
var color : UIColor // the words will get this color | |
init (color_I : UIColor, range_I : NSRange) { | |
color = color_I | |
range = range_I | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment