From 49780e2b042b139e584ed2b322b191e965319515 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Wed, 28 May 2014 21:36:06 +0200 Subject: [PATCH] Fix for useless XML parser rules. Something tells me that using : and | in your syntax might not be the best decision. --- lib/oga/xml/parser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oga/xml/parser.y b/lib/oga/xml/parser.y index 118c906..02efd75 100644 --- a/lib/oga/xml/parser.y +++ b/lib/oga/xml/parser.y @@ -82,14 +82,14 @@ rule cdata # - | T_CDATA { on_cdata(val[0]) } + : T_CDATA { on_cdata(val[0]) } ; # Comments comment # - | T_COMMENT { on_comment(val[0]) } + : T_COMMENT { on_comment(val[0]) } ; # Elements