diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 3105e3ff70..978ab78955 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -2832,7 +2832,9 @@ int main(int argc, char **argv, char **envp) */ if ((bstatm || /* Begins with C keyword */ - (line[indent] == '/' && bfunctions)) && /* Comment in functions */ + (line[indent] == '/' && + bfunctions && + line[indent + 1] == '*')) && /* Comment in functions */ !bswitch && /* Not in a switch */ dnest == 0) /* Not a data definition */ {