Hello,
Sorry if this already exists but my search weren’t successful.
I’m trying to extract js variables defined in a codeMirror instance, using token.state
and it works quite well, except for one case that can be seen in the autocomplete demo:
Basically if the autocomplete is triggered inside a function, with a string that matches one of the parameter name, the parameter isn’t in the token state.
function sum(first, second){
se|
}
Here |
indicates cursor position when triggering the autocomplete.
What’s funny is that if you trigger the autocomplete with this
function sum(first, second){
|
}
you’ll get the function params.
Is this a known limitation?