summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/devd/token.l2
1 files changed, 1 insertions, 1 deletions
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; }
OpenPOWER on IntegriCloud