# fix else-if parsing · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/0594487a2e98e18a18c0c6bdb2532c5e36fc6ea7)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 0594487a2e98e18a18c0c6bdb2532c5e36fc6ea7

Requested commit: 0594487a2e98e18a18c0c6bdb2532c5e36fc6ea7

Commit: 0594487a2e98e18a18c0c6bdb2532c5e36fc6ea7

Tree: cb82a82a5d6e20b1f30a53af48822951fc7a1d9d

Author: Josh Wolfe

Committer: Josh Wolfe

## Message

```
fix else-if parsing

implicit semicolon rules apply recursively to the "else" clause of if and try

if (a) {} else {} // implicit semicolon
if (a) {} else if (a) {} // implicit semicolon
if (a) {} else while (a) {} // implicit semicolon

```

## Parents

- [a33be6fc9906e010a44087dc2b7143717d875505](https://git.cafe/gitcafe/zig/commit/a33be6fc9906e010a44087dc2b7143717d875505?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/0594487a2e98e18a18c0c6bdb2532c5e36fc6ea7?format=markdown)
