summaryrefslogtreecommitdiffstats
path: root/eshtrans
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-22 15:06:26 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-22 15:06:26 (EST)
commit71f69788f64bdc17caece676b5f0ee8ded9e29d5 (patch)
tree644e5399997acc03b44adddd1ffec6a809d7b836 /eshtrans
parentc8148e05608d02ebc603773ad1a8e2a7f55f33ff (diff)
downloadeggshell-71f69788f64bdc17caece676b5f0ee8ded9e29d5.zip
eggshell-71f69788f64bdc17caece676b5f0ee8ded9e29d5.tar.gz
eggshell-71f69788f64bdc17caece676b5f0ee8ded9e29d5.tar.bz2
eshtrans/frontend: Accept T_RETURN
Diffstat (limited to 'eshtrans')
-rw-r--r--eshtrans/frontend/parser.esh5
1 files changed, 5 insertions, 0 deletions
diff --git a/eshtrans/frontend/parser.esh b/eshtrans/frontend/parser.esh
index eb82666..e993221 100644
--- a/eshtrans/frontend/parser.esh
+++ b/eshtrans/frontend/parser.esh
@@ -404,6 +404,11 @@ do_group()
simple_command()
{
ptrace_begn simple_command
+ if accept T_RETURN; then
+ cmd_suffix
+ ptrace_pass simple_command
+ return 0
+ fi
accept T_STATIC
if cmd_prefix; then
if cmd_word; then