Fix AWK tokenizer not treating a new line character as whitespace

This commit is contained in:
Junegunn Choi
2026-03-07 11:45:02 +09:00
parent f9830c5a3d
commit d324580840
2 changed files with 6 additions and 6 deletions

View File

@@ -161,7 +161,7 @@ func awkTokenizer(input string) ([]string, int) {
end := 0
for idx := 0; idx < len(input); idx++ {
r := input[idx]
white := r == 9 || r == 32
white := r == 9 || r == 32 || r == 10
switch state {
case awkNil:
if white {