diff --git a/README.md b/README.md index 56762a1..91e237e 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/src/analysis.zig b/src/analysis.zig index 79c2c71..60ca1d3 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -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?