1
0
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:
Kevin Glynn 2010-12-11 11:19:53 +01:00
parent bcae5ab029
commit 8355519858
2 changed files with 8 additions and 2 deletions

View File

@ -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:

View File

@ -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>\" */"