Index: vala/scanner.l =================================================================== --- vala/scanner.l (revision 497) +++ vala/scanner.l (working copy) @@ -71,6 +71,9 @@ "//".* { uploc; vala_parser_push_comment (parser, g_strdup (yytext + 2), FALSE); } +^#region.* { uploc; vala_parser_push_comment (parser, g_strdup_printf(" {{{ %s", (yytext + 7)), FALSE); } +^#endregion.* { uploc; vala_parser_push_comment (parser, g_strdup(" }}} "), FALSE); } + "{" { uploc; return OPEN_BRACE; } "}" { uploc; return CLOSE_BRACE; } "("({space}"weak")?{space}{ident}("."{ident})?("<"({ident}".")?{ident}(","({ident}".")?{ident})*">")?("["{space}"]")*{space}")"{space}("("|{ident}|{literal}) { yyless (1); uploc; return OPEN_CAST_PARENS; }