mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-19 13:33:26 +00:00
FFI: Fix comment parsing.
This commit is contained in:
parent
ee4cffb7e6
commit
29ac908f74
@ -264,7 +264,11 @@ static CPToken cp_string(CPState *cp)
|
||||
static void cp_comment_c(CPState *cp)
|
||||
{
|
||||
do {
|
||||
if (cp_get(cp) == '*' && cp_get(cp) == '/') { cp_get(cp); break; }
|
||||
if (cp_get(cp) == '*') {
|
||||
do {
|
||||
if (cp_get(cp) == '/') { cp_get(cp); return; }
|
||||
} while (cp->c == '*');
|
||||
}
|
||||
if (cp_iseol(cp->c)) cp_newline(cp);
|
||||
} while (cp->c != '\0');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user