Fixed the pull parser for the XML LL parser.
This commit is contained in:
1 parent
5eed0d31d6
commit
a023b35e78
2 files changed
+12
-3
No files matched your search
@@ -262,6 +262,17 @@ string_body_follow
|
||||
yield [-1, -1]
|
||||
end
|
||||
|
||||
##
|
||||
# @see [LL::Driver#parse]
|
||||
#
|
||||
def parse
|
||||
retval = super
|
||||
|
||||
reset
|
||||
|
||||
return retval
|
||||
end
|
||||
|
||||
##
|
||||
# @param [Array] children
|
||||
# @return [Oga::XML::Document]
|
||||
|
||||
@@ -84,9 +84,7 @@ module Oga
|
||||
def parse(&block)
|
||||
@block = block
|
||||
|
||||
yyparse(self, :yield_next_token)
|
||||
|
||||
reset
|
||||
super
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user