# File nqxml/tokenizer.rb, line 464 def nextComment text = textUpTo('-->', false, true) while text[-1] == '-' # "--->" is not a legal comment ending $stderr.puts "warning: illegal comment end string '--->'" + " seen and ignored" skipChars(3) # eat '-->' text << textUpTo('-->', false, true) end skipChars(3) # eat '-->' return Comment.new("<!--#{text}-->", @internalEntities) end