kconfig: fix line number in recursive inclusion detection
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 7 Jan 2024 13:19:48 +0000 (22:19 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:39 +0000 (18:20 +0900)
commit93c432e8c974dfd609a9c7777f731073e4de0c8e
tree85d28cb153cf8e9f05e9f256637e140ab49c2abc
parent12e3342fc7b0ec7fcb03f41bb49a1a6e3dcc0663
kconfig: fix line number in recursive inclusion detection

The error message shows a wrong line number if the 'source' directive
is wrapped to the following line.

[Test Code]

  source \
  "Kconfig"

This results in the following error message:

  Recursive inclusion detected.
  Inclusion path:
    current file : Kconfig
    included from: Kconfig:2

The correct message should be as follows:

  Recursive inclusion detected.
  Inclusion path:
    current file : Kconfig
    included from: Kconfig:1

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/lexer.l