summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-11 12:00:48 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-12 16:16:24 +0100
commit21c5ecf60472be9f1b5bfe0b94870bef93db4202 (patch)
treee61a38ee50c5fa7fdd226bdf4fa5fdf1db15b36b /tools
parentkconfig: remove unneeded pattern matching to whitespaces (diff)
downloadlinux-21c5ecf60472be9f1b5bfe0b94870bef93db4202.tar.xz
linux-21c5ecf60472be9f1b5bfe0b94870bef93db4202.zip
kconfig: refactor pattern matching in STRING state
Here, similar matching patters are duplicated in order to look ahead the '\n' character. If the next character is '\n', the lexer returns T_WORD_QUOTE because it must be prepared to return T_EOL at the next match. Use unput('\n') trick to reduce the code duplication. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions