The Julia docs say "Currently, type declarations cannot be used in global scope" here

So the ctags parser used by Geany is technically correct in not considering it a declaration.

More generally languages with "assignment is declaration" semantics give a simple static parser a problem, how to distinguish an assignment from a "declaration" so as to know when to add a name to the symbols. The writers of the ctags Julia parser seem to have taken the "assignments are not declarations" approach, the writers of the ctags Python parser have taken the other extreme, "every assignment is a declaration", so they all show in the symbols:

aaa = 2
aaa = 3

In Python shows two variables in the symbols, in Julia shows none.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/3341/1320992285@github.com>