diff options
-rw-r--r-- | usr.bin/pcc/cpp/scanner.l | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/pcc/cpp/scanner.l b/usr.bin/pcc/cpp/scanner.l index c2e94b4d5b1..47e83d82760 100644 --- a/usr.bin/pcc/cpp/scanner.l +++ b/usr.bin/pcc/cpp/scanner.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: scanner.l,v 1.11 2008/08/18 20:54:10 ragge Exp $ */ +/* $OpenBSD: scanner.l,v 1.12 2008/08/21 16:34:10 ragge Exp $ */ /* * Copyright (c) 2004 Anders Magnusson. All rights reserved. @@ -790,6 +790,10 @@ storepb(void) getcmnt(); stringbuf = g; continue; + } else if (c == '/') { + while ((c = input()) && c != '\n') + ; + break; } unput(c); c = '/'; |