 
 final class TokenTextView: NSTextView {
     
+    // MARK: Public Properties
+    
     var tokenizer: Tokenizer?
-    var tokenColor: NSColor = .selectedControlColor
     
     
     
     // MARK: -
     // MARK: Text View Methods
-    
-    override func viewDidMoveToWindow() {
-        
-        super.viewDidMoveToWindow()
-        
-        guard self.window != nil else { return }
-        
-        NotificationCenter.default.addObserver(self, selector: #selector(invalidateTokens), name: NSColor.systemColorsDidChangeNotification, object: nil)
-    }
-    
-    
-    override func viewDidChangeEffectiveAppearance() {
-        
-        super.viewDidChangeEffectiveAppearance()
-        
-        self.invalidateTokens()
-    }
-    
     
     override var string: String {
         

    }
    
}

        
        tokenizer.tokenize(self.string) { (token, range, keywordRange) in
            layoutManager.addTemporaryAttribute(.token, value: token, forCharacterRange: range)
            layoutManager.addTemporaryAttribute(.roundedBackgroundColor, value: NSColor.tokenBackgroundColor, forCharacterRange: range)
            layoutManager.addTemporaryAttribute(.foregroundColor, value: NSColor.tokenBraketColor, forCharacterRange: range)
            layoutManager.addTemporaryAttribute(.foregroundColor, value: NSColor.tokenTextColor, forCharacterRange: keywordRange)
        }
    }
    
