summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2008-11-07 14:27:01 +0000
committerOwen Taylor <otaylor@src.gnome.org>2008-11-07 14:27:01 +0000
commit5a7d8861b040749ff43ffcb8b9421b8df2f073fb (patch)
tree2192a0784d1b4b57d15f8dd6b907fff3422567db /giscanner
parentb2155cf1d785e50f021a48c44224dec3d70e6301 (diff)
downloadgobject-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.l1
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); }