Project

General

Profile

Feature #12929

ternary should look ahead w/in a block (and not care about newlines)

Added by ag4ve (shawn wilson) over 4 years ago. Updated about 4 years ago.

Status:
Assigned
Priority:
Normal
Target version:
-
[ruby-core:78107]

Description

foo = (bar ? 0 : 1) # works
foo = (bar ?
  0 : 1) # works
foo = (bar
  ? 0
  : 1) # doesn't work

Files

Screen Shot 2016-11-14 at 10.24.39.png (207 KB) Screen Shot 2016-11-14 at 10.24.39.png mutantkeyboard (Antonio Nesic), 11/14/2016 09:25 AM

Also available in: Atom PDF