Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
scanner: fix wrong linenumbers in parser errors
Browse files Browse the repository at this point in the history
Increment linenumber in parse_comment which reads over multiline comments.
  • Loading branch information
ensonic committed Dec 5, 2009
1 parent 5de1b4c commit 531442f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions giscanner/scannerlexer.l
Expand Up @@ -216,6 +216,9 @@ parse_comment (GISourceScanner *scanner)
{
g_string_append_c (comment, c1);

if (c1 == '\n')
lineno++;

c1 = c2;
c2 = input();

Expand Down

0 comments on commit 531442f

Please sign in to comment.