tokenize function only finds variables in same scope of cursor