1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

fix parens on ops and prettified multiple case labels

This commit is contained in:
Kevin Glynn 2010-12-11 12:59:42 +01:00
parent 8355519858
commit 4aa87128e7

View File

@ -179,7 +179,7 @@ switch(<scrutinee>)
>> >>
switch_section(labels,statements) ::= << switch_section(labels,statements) ::= <<
<labels> <labels; separator="\n">
<statements; separator="\n"> <statements; separator="\n">
>> >>
@ -234,9 +234,9 @@ void() ::= "void"
optparens(parens, e) ::= "<if(parens)>(<endif><e><if(parens)>)<endif>" optparens(parens, e) ::= "<if(parens)>(<endif><e><if(parens)>)<endif>"
parens(e) ::= "(<e>)" parens(e) ::= "(<e>)"
rank_specifiers(rs) ::= "<rs>" rank_specifiers(rs) ::= "<rs>"
op(comments,pre,op,post,mkparen,space) ::= << op(comments,pre,op,post,preparen,postparen,space) ::= <<
<comments; separator="\n"> <comments; separator="\n">
<if(mkparen)>(<endif><if(pre)><pre><space><endif><op><if(post)><space><post><endif><if(mkparen)>)<endif> <if(pre)><if(preparen)>(<endif><pre><if(preparen)>)<endif><space><endif><op><if(post)><space><if(postparen)>(<endif><post><if(postparen)>)<endif><endif>
>> >>
assign(lhs,lhsparen,assign,rhs,rhsparen) ::= "<if(lhsparen)>(<endif><lhs><if(lhsparen)>)<endif> <assign> <if(rhsparen)>(<endif><rhs><if(rhsparen)>)<endif>" assign(lhs,lhsparen,assign,rhs,rhsparen) ::= "<if(lhsparen)>(<endif><lhs><if(lhsparen)>)<endif> <assign> <if(rhsparen)>(<endif><rhs><if(rhsparen)>)<endif>"
generic_args(args) ::= "\<<args>\>" generic_args(args) ::= "\<<args>\>"