Skip to content
Commit 21c5ecf6 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent be3c8075
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment