From 3a8582030ddaec365c7287ed85a7ccd21cc79ff7 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Wed, 21 May 2014 00:11:39 +0200 Subject: [PATCH] Removed remaining fhold call in the XML lexer. There's no particular need any more for this fhold call so we're getting rid of it. --- ext/ragel/base_lexer.rl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ext/ragel/base_lexer.rl b/ext/ragel/base_lexer.rl index 293c1ec..14fbd1b 100644 --- a/ext/ragel/base_lexer.rl +++ b/ext/ragel/base_lexer.rl @@ -141,8 +141,8 @@ # namespace (if any). Remaining work is delegated to a dedicated # machine. action start_element { - fhold; - fnext element_head; + callback_simple("on_element_start"); + fnext element_name; } # Machine used for lexing the name/namespace of an element. @@ -166,11 +166,6 @@ element_head := |* whitespace | '='; - '<' => { - callback_simple("on_element_start"); - fnext element_name; - }; - newline => { callback_simple("on_newline"); };