Merge branch 'master' of https://github.com/SuperAuguste/zls into goto_definition
This commit is contained in:
commit
53da418d11
@ -27,9 +27,9 @@ zig build
|
|||||||
|
|
||||||
### Build Options
|
### Build Options
|
||||||
|
|
||||||
| Option | Type | What it Does |
|
| Option | Type | Default Value | What it Does |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| `-Ddata_version` | `string` | The data file version. Any files in the `src/data` file that correspond with the Zig version you want the language server to build for (0.6.0, master).
|
| `-Ddata_version` | `string` (master or 0.6.0) | 0.6.0 | The data file version. This selects the files in the `src/data` folder that correspond to the Zig version being served.
|
||||||
|
|
||||||
Then, you can use the `zls` executable in an editor of your choice that has a Zig language server client!
|
Then, you can use the `zls` executable in an editor of your choice that has a Zig language server client!
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ pub fn getFieldAccessTypeNode(
|
|||||||
},
|
},
|
||||||
.Period => {
|
.Period => {
|
||||||
var after_period = tokenizer.next();
|
var after_period = tokenizer.next();
|
||||||
if (after_period.id == .Eof) {
|
if (after_period.id == .Eof or after_period.id == .Comma) {
|
||||||
return current_node;
|
return current_node;
|
||||||
} else if (after_period.id == .Identifier) {
|
} else if (after_period.id == .Identifier) {
|
||||||
// TODO: This works for now, maybe we should filter based on the partial identifier ourselves?
|
// TODO: This works for now, maybe we should filter based on the partial identifier ourselves?
|
||||||
|
Loading…
Reference in New Issue
Block a user