class CustomScanner
def etags
def etags super + ["-%>"] end
def initialize(src)
def initialize(src) super(src, "<>", false) @scan_reg = /(.*?)(%>\r?\n|#{(stags + etags).join("|")}|\n|\z)/m end
def stags
def stags ["<%==", "<%+={0,2}"] + super end