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"); };