diff options
author | Owen Taylor <otaylor@redhat.com> | 2008-11-07 14:27:01 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2008-11-07 14:27:01 +0000 |
commit | 5a7d8861b040749ff43ffcb8b9421b8df2f073fb (patch) | |
tree | 2192a0784d1b4b57d15f8dd6b907fff3422567db /giscanner | |
parent | b2155cf1d785e50f021a48c44224dec3d70e6301 (diff) | |
download | gobject-introspection-5a7d8861b040749ff43ffcb8b9421b8df2f073fb.tar.gz |
Bug 559737 – Deal with continuations in macros
2008-11-07 Owen Taylor <otaylor@redhat.com>
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) \ <stuff> inside a C file. There's no attempt
however to handle parsing macro definitions split across lines.
svn path=/trunk/; revision=868
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/scannerlexer.l | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |