From fc3a3ee7205ef7a69528333530821c255e8505ab Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 23 Jul 2003 23:50:25 +0000 Subject: [PATCH] Simplistic C comment re is wrong, use more correct one --- sbin/devd/token.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/devd/token.l b/sbin/devd/token.l index eb71d5d85a85..03a5a722175b 100644 --- a/sbin/devd/token.l +++ b/sbin/devd/token.l @@ -56,7 +56,7 @@ update_lineno(const char *cp) ; { return SEMICOLON; } #.*$ ; \/\/.*$ ; -\/\*(.|\n)*\*\/ { update_lineno(yytext); } +\/\*([^*]|(\*+([^*\/])))*\*+\/ { update_lineno(yytext); } \{ { return BEGINBLOCK; } \} { return ENDBLOCK; } [0-9]+ { yylval.i = atoi(yytext); return NUMBER; }