Ok, so its the combination of symbols.c and tagmanager, so its not as simple as
just the switch that I suggested. And now I'm remembering why I don't touch
any of that stuff :)
As for the type of xsq in the above, well, I don't think ctags handles any
expression evaluation, so noticing that the lambda is called and returns a
value is beyond its pay grade, and (I think, jsfiddle was happy with it):
```
const xsq = (function(x){ return x*x});
```
__is__ a function, so the presence of the parens about the lambda can't be
simply taken to not make it a function. And in a dynamic language like JS
static inference is unlikely to always work anyway (see also Python and other
dynamic languages).
And inference is necessary in C++ and heaps of other languages too now. I'm
afraid the world (except C) has run away ahead of the capabilities of the ctags
model.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/2879#discussioncomment-1249391