diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-12-05 22:54:43 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-12-05 22:54:43 +0200 |
commit | 531442faea054507f7d50e36464ea1737e2423ac (patch) | |
tree | 67869f0adaf85098cd82ef8dcb25dc9490fa3093 /giscanner/scannerlexer.l | |
parent | 5de1b4c4f628cddd23df07f1b09e4e0be62dc941 (diff) | |
download | gobject-introspection-531442faea054507f7d50e36464ea1737e2423ac.tar.gz |
scanner: fix wrong linenumbers in parser errors
Increment linenumber in parse_comment which reads over multiline comments.
Diffstat (limited to 'giscanner/scannerlexer.l')
-rw-r--r-- | giscanner/scannerlexer.l | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l index d78de905..cee91608 100644 --- a/giscanner/scannerlexer.l +++ b/giscanner/scannerlexer.l @@ -216,6 +216,9 @@ parse_comment (GISourceScanner *scanner) { g_string_append_c (comment, c1); + if (c1 == '\n') + lineno++; + c1 = c2; c2 = input(); |