diff --git a/ase/awk/parse.c b/ase/awk/parse.c index 0805cec5..32c0bfa8 100644 --- a/ase/awk/parse.c +++ b/ase/awk/parse.c @@ -1,5 +1,5 @@ /* - * $Id: parse.c,v 1.153 2006-08-03 09:53:45 bacon Exp $ + * $Id: parse.c,v 1.154 2006-08-03 09:58:15 bacon Exp $ */ #include @@ -385,7 +385,12 @@ static void __dump (xp_awk_t* awk) xp_awk_prnptnpt (chain->pattern); } - if (chain->action != XP_NULL) + if (chain->action == XP_NULL) + { + /* blockless pattern */ + xp_printf (XP_T("\n")); + } + else { xp_awk_prnpt (chain->action); } diff --git a/ase/test/awk/t25.awk b/ase/test/awk/t25.awk index c14c928d..85e9a7a9 100644 --- a/ase/test/awk/t25.awk +++ b/ase/test/awk/t25.awk @@ -10,4 +10,4 @@ print /ABC/ ~ /DEF/; } -/zzz/ +/zzz/ \ No newline at end of file