Skip to content

Instantly share code, notes, and snippets.

@romainmenke
Last active September 14, 2015 20:31
Show Gist options
  • Save romainmenke/b3661983f6d2cb2e6cb8 to your computer and use it in GitHub Desktop.
Save romainmenke/b3661983f6d2cb2e6cb8 to your computer and use it in GitHub Desktop.
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