From 2bf7d5e4dc1331114f5b513768662ed058e8b762 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 28 Sep 2007 17:59:46 +0000 Subject: back to start state when pragma is done; ok ragge@ --- usr.bin/pcc/cc/cpp/scanner.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/pcc/cc/cpp') 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) "define" { contr = 0; BEGIN DEF; define(); BEGIN 0; } "undef" { contr = 0; if (slow) return IDENT; undefstmt(); } "line" { contr = 0; storepb(); BEGIN 0; line(); } -"pragma" { contr = 0; pragmastmt(); } +"pragma" { contr = 0; pragmastmt(); BEGIN 0; } "elif" { contr = 0; storepb(); BEGIN IFR; elifstmt(); BEGIN 0; } -- cgit v1.2.3