def getFocusedSymbol(sourceText, caretOffset, symbolChars="[\w]"):
    startOffset = 0
    endOffset = 0
    reChar = re.compile(symbolChars)
    
    n = caretOffset-1
    while n > 0:
        if not reChar.match(sourceText[n]):
            break
        n -= 1

    startOffset = n+1
    
    n = caretOffset
    while len(sourceText) < n:
        if not reChar.match(sourceText[n]):
            break
        n += 1

    endOffset = n
    
    return sourceText[startOffset:endOffset]
dataset/ETHPy150Open joehewitt/devon/devon/jump.py/getFocusedSymbol/swapped operands of `<`