From 3c9c39005499801a81baa937dad098ba57a6a6f8 Mon Sep 17 00:00:00 2001 From: imp Date: Wed, 23 Jul 2003 23:50:25 +0000 Subject: Simplistic C comment re is wrong, use more correct one --- sbin/devd/token.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/devd') diff --git a/sbin/devd/token.l b/sbin/devd/token.l index eb71d5d..03a5a72 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; } -- cgit v1.1