@@ -1895,13 +1895,13 @@ contract Conditional {
18951895
18961896 // multiline conditions and consequents/alternates:
18971897 string
1898- storage multilineConditionsConsequentsAndAlternates = isAnAdorableKittyCat () &&
1899- (someReallyLongCondition || moreInThisLongCondition )
1898+ storage multilineConditionsConsequentsAndAlternates = ( isAnAdorableKittyCat () &&
1899+ (someReallyLongCondition || moreInThisLongCondition ))
19001900 ? someReallyLargeExpression
19011901 .thatWouldCauseALineBreak ()
19021902 .willCauseAnIndentButNotParens ()
1903- : isNotAnAdorableKittyCat () &&
1904- (someReallyLongCondition || moreInThisLongCondition )
1903+ : ( isNotAnAdorableKittyCat () &&
1904+ (someReallyLongCondition || moreInThisLongCondition ))
19051905 ? bark ()
19061906 : shortCondition ()
19071907 ? shortConsequent ()
@@ -1910,13 +1910,13 @@ contract Conditional {
19101910 .willCauseAnIndentButNotParens ();
19111911
19121912 // Assignment also groups and indents as Variable Declaration:
1913- assignment = isAnAdorableKittyCat () &&
1914- (someReallyLongCondition || moreInThisLongCondition )
1913+ assignment = ( isAnAdorableKittyCat () &&
1914+ (someReallyLongCondition || moreInThisLongCondition ))
19151915 ? someReallyLargeExpression
19161916 .thatWouldCauseALineBreak ()
19171917 .willCauseAnIndentButNotParens ()
1918- : isNotAnAdorableKittyCat () &&
1919- (someReallyLongCondition || moreInThisLongCondition )
1918+ : ( isNotAnAdorableKittyCat () &&
1919+ (someReallyLongCondition || moreInThisLongCondition ))
19201920 ? bark ()
19211921 : shortCondition ()
19221922 ? shortConsequent ()
@@ -1931,32 +1931,33 @@ contract Conditional {
19311931 ? " two"
19321932 : x == 3
19331933 ? " three"
1934- : x == 5 &&
1934+ : ( x == 5 &&
19351935 y == 7 &&
19361936 someOtherThing
19371937 .thatIsSoLong
1938- .thatItBreaksTheTestCondition ()
1938+ .thatItBreaksTheTestCondition ())
19391939 ? " four"
19401940 : x == 6
19411941 ? " six"
19421942 : " idk" ;
19431943
19441944 // long conditional, short consequent/alternate, not chained - do indent after ?
1945- string storage longConditional = bifornCringerMoshedPerplexSawder ==
1945+ string storage longConditional = ( bifornCringerMoshedPerplexSawder ==
19461946 2 / askTrovenaBeenaDependsRowans &&
19471947 glimseGlyphsHazardNoopsTieTie >=
1948- averredBathersBoxroomBuggyNurl ().anodyneCondosMalateOverateRetinol ()
1948+ averredBathersBoxroomBuggyNurl ()
1949+ .anodyneCondosMalateOverateRetinol ())
19491950 ? " foo"
19501951 : " bar" ;
19511952
19521953 // long conditional, short consequent/alternate, chained
19531954 // (break on short consequents iff in chained ternary and its conditional broke)
19541955 string
1955- storage longConditionalChained = bifornCringerMoshedPerplexSawder ==
1956+ storage longConditionalChained = ( bifornCringerMoshedPerplexSawder ==
19561957 2 / askTrovenaBeenaDependsRowans &&
19571958 glimseGlyphsHazardNoopsTieTie >=
19581959 averredBathersBoxroomBuggyNurl ()
1959- .anodyneCondosMalateOverateRetinol ()
1960+ .anodyneCondosMalateOverateRetinol ())
19601961 ? " foo"
19611962 : anotherCondition
19621963 ? " bar"
@@ -1977,7 +1978,7 @@ contract Conditional {
19771978 );
19781979
19791980 // Conditional as a condition
1980- (foo ? 1 : bar ) ? 3 : 4 ;
1981+ ((( foo ? 1 : bar )) ) ? 3 : 4 ;
19811982 (
19821983 isCat ()
19831984 ? meow ()
0 commit comments