]> granicus.if.org Git - icinga2/commitdiff
Fix column information for config errors.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 1 Apr 2014 09:43:53 +0000 (11:43 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 1 Apr 2014 09:43:53 +0000 (11:43 +0200)
Refs #5901

lib/config/config_lexer.ll

index 510a484d3e061f3357540808e39098b30b718e2f..d00ed6c40ad577313a801ed69c06583523cc3851 100644 (file)
@@ -261,7 +261,7 @@ in                          { yylval->op = &AExpression::OpIn; return T_IN; }
 \>                             { yylval->op = &AExpression::OpLessThan; return T_GREATER_THAN; }
 }
 
-[\r\n]+                                { if (!ignore_newlines) return T_NEWLINE; }
+[\r\n]+                                { yycolumn -= strlen(yytext) - 1; if (!ignore_newlines) return T_NEWLINE; }
 .                              return yytext[0];
 
 %%