lib/liquidscript/scanner/liquidscript/regexs.rb in liquidscript-0.10.4 vs lib/liquidscript/scanner/liquidscript/regexs.rb in liquidscript-0.11.0.rc1
- old
+ new
@@ -11,10 +11,10 @@
on(%r{///([a-z]*)}) do |_, m|
emit :regex, [@buffer.join, m]
exit
end
on(%r{#.*?\n}) { }
- on("\n") { }
+ on(/\s/) { }
on(:_) { |m| @buffer << m }
end
end
end
end