From 9ae1b99b43d631ae16af49a8a8cacfd9ba10b062 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Tue, 31 Oct 2017 02:57:38 +0000 Subject: [PATCH] fixed wrong handling of a comment closer in the builtin compiler --- moo/kernel/Socket.moo | 1 - moo/lib/comp.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/moo/kernel/Socket.moo b/moo/kernel/Socket.moo index 3da1933..672e322 100644 --- a/moo/kernel/Socket.moo +++ b/moo/kernel/Socket.moo @@ -111,7 +111,6 @@ sg addSemaphore: s1. (**** class MyObject(Object) { - method(#class) main { | s | diff --git a/moo/lib/comp.c b/moo/lib/comp.c index 239543d..c523fc1 100644 --- a/moo/lib/comp.c +++ b/moo/lib/comp.c @@ -941,9 +941,11 @@ static int skip_comment (moo_t* moo) if (c == '*') { + check_rparen: GET_CHAR_TO (moo, c); if (c == MOO_UCI_EOF) goto unterminated; + if (c == '*') goto check_rparen; if (c == ')') { GET_CHAR (moo); /* keep the first meaningful character in lxc */