projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5de1b4c
)
scanner: fix wrong linenumbers in parser errors
author
Stefan Kost
<ensonic@users.sf.net>
Sat, 5 Dec 2009 20:54:43 +0000
(22:54 +0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Sat, 5 Dec 2009 20:54:43 +0000
(22:54 +0200)
Increment linenumber in parse_comment which reads over multiline comments.
giscanner/scannerlexer.l
patch
|
blob
|
history
diff --git
a/giscanner/scannerlexer.l
b/giscanner/scannerlexer.l
index d78de905a9b938720827c41b643d24c1d217f524..cee9160879c9c71e6f3893ffb2a47ef431e56841 100644
(file)
--- 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();