diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-28 17:59:46 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-28 17:59:46 +0000 |
commit | 2bf7d5e4dc1331114f5b513768662ed058e8b762 (patch) | |
tree | 68bc146000a23d3bfb798024b74c6a675d9099ae /usr.bin/pcc/cc | |
parent | 1db07ac329a17398cb04acb83b7283a62cc9cf65 (diff) |
back to start state when pragma is done; ok ragge@
Diffstat (limited to 'usr.bin/pcc/cc')
-rw-r--r-- | usr.bin/pcc/cc/cpp/scanner.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pcc/cc/cpp/scanner.l b/usr.bin/pcc/cc/cpp/scanner.l index f8c62193003..5bb0dc51365 100644 --- a/usr.bin/pcc/cc/cpp/scanner.l +++ b/usr.bin/pcc/cc/cpp/scanner.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: scanner.l,v 1.7 2007/09/26 12:46:47 otto Exp $ */ +/* $OpenBSD: scanner.l,v 1.8 2007/09/28 17:59:45 otto Exp $ */ /* * Copyright (c) 2004 Anders Magnusson. All rights reserved. @@ -203,7 +203,7 @@ L?'(\\.|[^\\'])+' { if (YYSTATE) <CONTR>"define" { contr = 0; BEGIN DEF; define(); BEGIN 0; } <CONTR>"undef" { contr = 0; if (slow) return IDENT; undefstmt(); } <CONTR>"line" { contr = 0; storepb(); BEGIN 0; line(); } -<CONTR>"pragma" { contr = 0; pragmastmt(); } +<CONTR>"pragma" { contr = 0; pragmastmt(); BEGIN 0; } <CONTR>"elif" { contr = 0; storepb(); BEGIN IFR; elifstmt(); BEGIN 0; } |