Эх сурвалжийг харах

tools: Recognize backslashes in Kconfigs with CR+LF line endings

Roland Dobai 7 жил өмнө
parent
commit
d1dd3ab0d3
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      tools/kconfig/zconf.l

+ 1 - 1
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);
 	<<EOF>> {