fixed wrong handling of a comment closer in the builtin compiler

This commit is contained in:
hyunghwan.chung 2017-10-31 02:57:38 +00:00
parent d042f0f494
commit 9ae1b99b43
2 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,6 @@ sg addSemaphore: s1.
(**** (****
class MyObject(Object) class MyObject(Object)
{ {
method(#class) main method(#class) main
{ {
| s | | s |

View File

@ -941,9 +941,11 @@ static int skip_comment (moo_t* moo)
if (c == '*') if (c == '*')
{ {
check_rparen:
GET_CHAR_TO (moo, c); GET_CHAR_TO (moo, c);
if (c == MOO_UCI_EOF) goto unterminated; if (c == MOO_UCI_EOF) goto unterminated;
if (c == '*') goto check_rparen;
if (c == ')') if (c == ')')
{ {
GET_CHAR (moo); /* keep the first meaningful character in lxc */ GET_CHAR (moo); /* keep the first meaningful character in lxc */