diff mbox

[ovs-dev] lex: Treat formfeeds as white space.

Message ID 1475859890-11222-1-git-send-email-blp@ovn.org
State Accepted
Headers show

Commit Message

Ben Pfaff Oct. 7, 2016, 5:04 p.m. UTC
Also vertical tabs, whatever those are.

Signed-off-by: Ben Pfaff <blp@ovn.org>
---
 ovn/lib/lex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andy Zhou Oct. 11, 2016, 11:27 p.m. UTC | #1
On Fri, Oct 7, 2016 at 10:04 AM, Ben Pfaff <blp@ovn.org> wrote:

> Also vertical tabs, whatever those are.
>
> Signed-off-by: Ben Pfaff <blp@ovn.org>
>

Acked-by: Andy Zhou <azhou@ovn.org>
Ben Pfaff Oct. 12, 2016, 2:38 a.m. UTC | #2
On Tue, Oct 11, 2016 at 04:27:40PM -0700, Andy Zhou wrote:
> On Fri, Oct 7, 2016 at 10:04 AM, Ben Pfaff <blp@ovn.org> wrote:
> 
> > Also vertical tabs, whatever those are.
> >
> > Signed-off-by: Ben Pfaff <blp@ovn.org>
> >
> 
> Acked-by: Andy Zhou <azhou@ovn.org>

Thanks, I'll apply this to master in a minute.
diff mbox

Patch

diff --git a/ovn/lib/lex.c b/ovn/lib/lex.c
index a05edfa..7eee3b6 100644
--- a/ovn/lib/lex.c
+++ b/ovn/lib/lex.c
@@ -589,7 +589,7 @@  next:
         token->type = LEX_T_END;
         return p;
 
-    case ' ': case '\t': case '\n': case '\r':
+    case ' ': case '\t': case '\n': case '\r': case '\v': case '\f':
         p++;
         goto next;