summaryrefslogtreecommitdiffstats
path: root/sbin/devd/token.l
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-07-23 23:50:25 +0000
committerimp <imp@FreeBSD.org>2003-07-23 23:50:25 +0000
commit3c9c39005499801a81baa937dad098ba57a6a6f8 (patch)
tree47e4461de55ace825853620a849da3ea71989678 /sbin/devd/token.l
parentb0747bd0098d542b22577c813b8a74ca7538cca6 (diff)
downloadFreeBSD-src-3c9c39005499801a81baa937dad098ba57a6a6f8.zip
FreeBSD-src-3c9c39005499801a81baa937dad098ba57a6a6f8.tar.gz
Simplistic C comment re is wrong, use more correct one
Diffstat (limited to 'sbin/devd/token.l')
-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