mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
fix for multiple catch clauses, weird: is list() special in ST?
This commit is contained in:
parent
bcae5ab029
commit
8355519858
@ -1257,7 +1257,7 @@ goto_statement:
|
||||
| 'case' constant_expression
|
||||
| 'default') ';' ;
|
||||
catch_clauses:
|
||||
c+=catch_clause+ -> list(items={ $c }, sep = { "\n" }) ;
|
||||
c+=catch_clause+ -> seplist(items={ $c }, sep = { "\n" }) ;
|
||||
catch_clause:
|
||||
^('catch' type identifier block) -> catch_template(type = { $type.st }, id = { $identifier.st }, block = {$block.st}, blocksemi = { $block.isSemi }, blockbraces = { !$block.isSemi } );
|
||||
finally_clause:
|
||||
|
@ -244,7 +244,13 @@ parameter(annotation,param) ::= "/* <annotation> */ <param>"
|
||||
inline_comment(payload, explanation) ::= "/* <explanation> <payload> */"
|
||||
commalist(items) ::= "<items; separator=\", \">"
|
||||
dotlist(items) ::= "<items; separator=\".\">"
|
||||
list(items,sep) ::= "<items;separator=sep>"
|
||||
//list(items,sep) ::= "<items;separator=sep>"
|
||||
list(items,sep) ::= <<
|
||||
<items;separator=sep>
|
||||
>>
|
||||
seplist(items,sep) ::= <<
|
||||
<items;separator=sep>
|
||||
>>
|
||||
|
||||
unsupported(reason, text) ::= "/* [UNSUPPORTED] <reason> \"<text>\" */"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user