     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 {

//
//  ---------------------------------------------------------------------------
//
//  © 2015-2019 1024jp
//
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.

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