From 5a7d8861b040749ff43ffcb8b9421b8df2f073fb Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 7 Nov 2008 14:27:01 +0000 Subject: =?UTF-8?q?Bug=20559737=20=E2=80=93=20Deal=20with=20continuations?= =?UTF-8?q?=20in=20macros?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-11-07 Owen Taylor Bug 559737 – Deal with continuations in macros * giscanner/giscannerlexer.l: Treat continuation lines the same as regular newlines. This makes the scanner not complain about #define foo(x) \ inside a C file. There's no attempt however to handle parsing macro definitions split across lines. svn path=/trunk/; revision=868 --- giscanner/scannerlexer.l | 1 + 1 file changed, 1 insertion(+) (limited to 'giscanner/scannerlexer.l') diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l index 2cfb12fe..3b2b7e8a 100644 --- a/giscanner/scannerlexer.l +++ b/giscanner/scannerlexer.l @@ -57,6 +57,7 @@ stringtext ([^\\\"])|(\\.) %% "\n" { ++lineno; } /* " */ +"\\\n" { ++lineno; } [\t\f\v\r ]+ { /* Ignore whitespace. */ } "/*" { parse_comment(scanner); } -- cgit v1.2.1