sublime-zig-language icon indicating copy to clipboard operation
sublime-zig-language copied to clipboard

Symbol detection gives incorrect locations

Open TheGag96 opened this issue 3 years ago • 3 comments

Using Ctrl+R to search through symbols in a given file seems to yield not the actual definition site of a symbol, but just a random place where it happens to be mentioned. Try searching for Feature in target.zig to see what I mean.

TheGag96 avatar Apr 18 '22 03:04 TheGag96

It appears declarations aren't picked up as such. I believe what's missing is meta.struct.zig.

Here's target.zig as op described. image

Here's a struct definition in a cpp file. image

Manuzor avatar Aug 09 '22 13:08 Manuzor

can you try #67 ?

gwenzek avatar Sep 02 '22 09:09 gwenzek

can you try #67 ?

With just a quick test, this seems to work a lot better!

TheGag96 avatar Sep 05 '22 01:09 TheGag96