Support "if" without "else" clause

Defaults the else clause to the identity filter "." if an else clause is
missing.

The following two jq programs are considered equivalent:

```
if .foo then
    .foo = "bar"
else
    .
end
```

```
if .foo then
    .foo = "bar"
end
```
This commit is contained in:
Chance Zibolski authored and Nico Williams committed 2019-02-20 20:03:26 -06:00
1 parent 1ef90acb38
commit 4f6045a94e
4 files changed
+1092 -1057

No files matched your search

+1070 -1051
View File
File diff suppressed because it is too large. Load diff