diff options
author | imp <imp@FreeBSD.org> | 2003-07-23 23:50:25 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-07-23 23:50:25 +0000 |
commit | 3c9c39005499801a81baa937dad098ba57a6a6f8 (patch) | |
tree | 47e4461de55ace825853620a849da3ea71989678 /sbin/devd | |
parent | b0747bd0098d542b22577c813b8a74ca7538cca6 (diff) | |
download | FreeBSD-src-3c9c39005499801a81baa937dad098ba57a6a6f8.zip FreeBSD-src-3c9c39005499801a81baa937dad098ba57a6a6f8.tar.gz |
Simplistic C comment re is wrong, use more correct one
Diffstat (limited to 'sbin/devd')
-rw-r--r-- | sbin/devd/token.l | 2 |
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; } |