Fix AWK tokenizer not treating a new line character as whitespace

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

No files matched your search

+1 -1
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 {