changed the block comment style the same as C

This commit is contained in:
hyunghwan.chung
2019-06-19 12:38:09 +00:00
parent 6b2cb6f9df
commit 102de55322
26 changed files with 265 additions and 265 deletions

View File

@ -1114,9 +1114,9 @@ static int skip_comment (moo_t* moo)
if (c == '"') GET_CHAR (moo); /* keep the next character in lxc */
return 1; /* double-quoted comment */
}
else if (c == '(')
else if (c == '/')
{
/* handle (* ... *) */
/* handle block comment encoded in /x x/ where x is * */
lc = moo->c->lxc;
GET_CHAR_TO (moo, c);
if (c != '*') goto not_comment;
@ -1133,7 +1133,7 @@ static int skip_comment (moo_t* moo)
if (c == MOO_OOCI_EOF) goto unterminated;
if (c == '*') goto check_rparen; /* got another * after * */
if (c == ')')
if (c == '/')
{
GET_CHAR (moo); /* keep the first meaningful character in lxc */
break;
@ -1142,7 +1142,7 @@ static int skip_comment (moo_t* moo)
}
while (1);
return 1; /* multi-line comment enclosed in (* and *) */
return 1; /* multi-line comment enclosed in /x and x/ where x is * */
}
else if (c == '#')
{