From: Jürg Billeter Date: Sun, 5 Apr 2009 16:42:25 +0000 (+0200) Subject: Fix error messages when using preprocessing directives X-Git-Tag: 0.7.1~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cd3e70a7bb0594dfb811c627b9907124d6b26bb;p=thirdparty%2Fvala.git Fix error messages when using preprocessing directives The line information was off when skipping conditional sections. --- diff --git a/vala/valascanner.vala b/vala/valascanner.vala index ec9e907b0..4177fb84d 100644 --- a/vala/valascanner.vala +++ b/vala/valascanner.vala @@ -828,8 +828,8 @@ public class Vala.Scanner { while (current < end) { if (bol && current[0] == '#') { // go back to begin of line - current -= column; - column = 0; + current -= (column - 1); + column = 1; return; } if (current[0] == '\n') {