defmodule Exquery do
require Exquery.Helpers
import Exquery.Helpers
alias Exquery.Tree
@spaces [" ", "\n", "\t", "\r"]
#yes this doesn't handle all cases..like StYlE
#need a better way to deal with cases
@styles [" "\"", attributes}, acc)
ff_until "\\\"", {:doc, :js_comment_dq}, do: ff(r, {{:doc, :js_comment_dq}, current <> "\\\"", attributes}, acc)
ff_until "\"", {:doc, :js_comment_dq}, do: ff(r, {{:doc, :js}, current <> "\"", attributes}, acc)
ff_until "\\'", {:doc, :js_comment_sq}, do: ff(r, {{:doc, :js_comment_sq}, current <> "\\'", attributes}, acc)
ff_until "'", {:doc, :js}, do: ff(r, {{:doc, :js_comment_sq}, current <> "'", attributes}, acc)
ff_until "'", {:doc, :js_comment_sq}, do: ff(r, {{:doc, :js}, current <> "'", attributes}, acc)
ff_until "
ff_until "<#{unquote(tag)}", {:doc, :none}, do: ff(r, {{:doc, :self_closing}, unquote(tag), []}, acc)
end)
ff_until "