Commit 7b978de
committed
Small fix for invalid ternary detection
This was done mostly to help with crazy flow annotations since the
ternary region would cause cascading syntax breakage. Also, a statement
like `?:` is a syntax error.
I considered adding 0 or more whitespace check as well, but I found in
practice this actually becomes annoying if you you are someone who sets
up ternary boundaries first and then fills them in after, since it won't
detect the ternary right away.1 parent 9648f31 commit 7b978de
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
0 commit comments