Open Ellpeck opened 4 months ago
What i want is a format like token@12:3
or in other words a criteration which selects a token that contains that position. Currently 12:3
checks for a token that starts at the given position (with a little bit of automatic selection on wrapper elements). However, if we, for example specify 12:3
but line 12 looks like this: longvariable <- 3
, then we are not finding the token (correctly). What i want is a different format which checks for inclusion and selects longvariable
(i.e. maps to the internal id of the symbol token).
See this comment on vscode-flowr. Finding the beginning of a token is currently hacky there, and a nice fix for this issue would be allowing a less specific slicing point format than
line:col