       for token in tokenizedLine.tokens
         if not token.firstNonWhitespaceIndex
           return [[lineNumber, 0], [lineNumber, offset]]
-        if token.firstNonWhitespaceIndex isnt token.bufferDelta
+        if token.firstNonWhitespaceIndex isnt token.value.length
           return [[lineNumber, 0], [lineNumber, offset + token.firstNonWhitespaceIndex]]
-        offset += token.bufferDelta
+        offset += token.value.length
     when 'E262', 'E265'
       # E262 - inline comment should start with '# '
       # E265 - block comment should start with '# '

        for token in tokenizedLine.tokens
          if 'meta.function.python' in token.scopes
            if token.value is symbol
              return [[lineNumber, offset], [lineNumber, offset + token.bufferDelta]]
          if 'meta.function.decorator.python' in token.scopes
            foundDecorator = true
          offset += token.bufferDelta
        if not foundDecorator
          break
        lineNumber += 1

      offset = 0
      for token in tokenizedLine.tokens
        if token.value is symbol and offset >= colNumber - 1
          return [[lineNumber, offset], [lineNumber, offset + token.value.length]]
        offset += token.value.length
    when 'H101'
      # H101 - use TODO(NAME)
      return [[lineNumber, colNumber - 1], [lineNumber, colNumber + 3]]
