Merge branch 'master' of https://github.com/SuperAuguste/zls into goto_definition

This commit is contained in:
Alexandros Naskos 2020-05-18 23:20:18 +03:00
commit 53da418d11
2 changed files with 4 additions and 4 deletions

View File

@ -27,9 +27,9 @@ zig build
### Build Options
| Option | Type | 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).
| Option | Type | Default Value | What it Does |
| --- | --- | --- | --- |
| `-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!

View File

@ -381,7 +381,7 @@ pub fn getFieldAccessTypeNode(
},
.Period => {
var after_period = tokenizer.next();
if (after_period.id == .Eof) {
if (after_period.id == .Eof or after_period.id == .Comma) {
return current_node;
} else if (after_period.id == .Identifier) {
// TODO: This works for now, maybe we should filter based on the partial identifier ourselves?