summaryrefslogtreecommitdiffstats
path: root/usr.bin/colldef/scan.l
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-10-03 01:21:33 +0000
committerache <ache@FreeBSD.org>1999-10-03 01:21:33 +0000
commit6fad2be5dc3a372f1295efaf81c9daf73413a4cc (patch)
tree571ceb78dc82ffce7136d1fb4585bed148be51e2 /usr.bin/colldef/scan.l
parent2eeb45809898d851a2b64e21507479687089a928 (diff)
downloadFreeBSD-src-6fad2be5dc3a372f1295efaf81c9daf73413a4cc.zip
FreeBSD-src-6fad2be5dc3a372f1295efaf81c9daf73413a4cc.tar.gz
allow comments in map files
Diffstat (limited to 'usr.bin/colldef/scan.l')
-rw-r--r--usr.bin/colldef/scan.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/colldef/scan.l b/usr.bin/colldef/scan.l
index d99f001..9b25e13 100644
--- a/usr.bin/colldef/scan.l
+++ b/usr.bin/colldef/scan.l
@@ -111,6 +111,7 @@ YYSTYPE yylval;
yylval.ch = *yytext;
return CHAR;
}
+<defn>^#.*\n line_no++;
<defn>[ \t]+ {
if (ptr == buf)
errx(EX_UNAVAILABLE, "map expected near line %u of %s",
OpenPOWER on IntegriCloud