diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2021-03-07 12:38:08 +0100 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2021-03-08 01:37:28 +0100 |
| commit | b988815bf0771dd86a345ce8ed8b0d3eb9d6f55e (patch) | |
| tree | fed9a51f338b4ada0bbebf6314bba22482813361 /src/zig_clang_driver.cpp | |
| parent | d01bb211732f1d0aebf558c43825a52254d034ab (diff) | |
| download | zig-b988815bf0771dd86a345ce8ed8b0d3eb9d6f55e.tar.gz zig-b988815bf0771dd86a345ce8ed8b0d3eb9d6f55e.zip | |
parser: fix parsing/rendering of a[b.. :c] slicing
The modification to the grammar in the comment is in line with the
grammar in the zig-spec repo.
Note: checking if the previous token is a colon is insufficent to tell
if a block has a label, the identifier must be checked for as well. This
can be seen in sentinel terminated slicing: `foo[0..1:{}]`
Diffstat (limited to 'src/zig_clang_driver.cpp')
0 files changed, 0 insertions, 0 deletions
