     func rangeOfIndent(at location: Int) -> NSRange {
         
         let lineRange = (self as NSString).lineRange(at: location)
-        
         let range = (self as NSString).range(of: "^[ \\t]+", options: .regularExpression, range: lineRange)
         
         guard range.location != NSNotFound else {

        guard !indentRange.isEmpty else { return 0 }
        
        let indent = self[workaround: indentRange]
        let numberOfTabs = indent.components(separatedBy: "\t").count - 1
        
        return numberOfTabs + ((indent.count - numberOfTabs) / tabWidth)
    }

        
        let lineRange = self.lineRange(at: index)
        
        return self.range(of: "^[ \\t]+", options: .regularExpression, range: lineRange) ?? index..<index
    }
    
    
