Open Sekky61 opened 2 hours ago
As for the fix, the problem seems to be in the identifierLocFromIndex
function.
It does not work with identifiers with special characters (the @""
syntax).
I propose that identifierLocFromIndex
should handle the @""
syntax.
If you agree, I would like to take a look at this issue
Zig Version
0.14.0-dev.1573+4d81e8ee9
ZLS Version
0.14.0-dev.160+cf9b49a
Client / Code Editor / Extensions
NVIM v0.10.1 and lspconfig
Steps to Reproduce and Observed Behavior
Reproduction:
@"identifier with spaces in it"
and perform Go to definitionsource
in.@"source.fixAll"
and perform Go to definitionfixAll
in.@"source.fixAll"
and perform Go to definitionNotice that:
.@"source.fixAll"
jumps to thesource
definition and only works before the dot.Expected Behavior
I expected the cursor to go to the definition of the variable/enum variant.
Relevant log output
No response