From d1dd3ab0d3f793ed28291ebcc6f7f337e65131b4 Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Wed, 30 Jan 2019 15:13:20 +0100 Subject: [PATCH] tools: Recognize backslashes in Kconfigs with CR+LF line endings --- tools/kconfig/zconf.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kconfig/zconf.l b/tools/kconfig/zconf.l index 8fd75491c..fa0da6b70 100644 --- a/tools/kconfig/zconf.l +++ b/tools/kconfig/zconf.l @@ -151,7 +151,7 @@ n [A-Za-z0-9_-] return T_WORD; } #.* /* comment */ - \\\n current_file->lineno++; + \\\r?\n current_file->lineno++; [[:blank:]]+ . warn_ignored_character(*yytext); <> {