summaryrefslogtreecommitdiff
path: root/bin/chio/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'bin/chio/parse.y')
-rw-r--r--bin/chio/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/chio/parse.y b/bin/chio/parse.y
index 2f5dc35c3d3..b50440aafa6 100644
--- a/bin/chio/parse.y
+++ b/bin/chio/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.8 2007/10/13 16:35:16 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.9 2007/10/16 06:06:47 deraadt Exp $ */
/*
* Copyright (c) 2006 Bob Beck <beck@openbsd.org>
@@ -301,8 +301,10 @@ yylex(void)
} else if (c == '\\') {
if ((next = lgetc(quotec)) == EOF)
return (0);
- if (next == quotec)
+ if (next == quotec || c == ' ' || c == '\t')
c = next;
+ else if (next == '\n')
+ continue;
else
lungetc(next);
} else if (c == quotec) {