The Julia docs say "Currently, type declarations cannot be used in global 
scope" [here](https://docs.julialang.org/en/v1/manual/types/#Type-Declarations)

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 or view it on GitHub:
https://github.com/geany/geany/issues/3341#issuecomment-1320992285
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3341/[email protected]>

Reply via email to