lib/hanami/view/erb/parser.rb in hanami-view-2.1.0.rc1 vs lib/hanami/view/erb/parser.rb in hanami-view-2.1.0.rc2
- old
+ new
@@ -76,10 +76,10 @@
# generated sexp to be pushed onto `results.last`, knowing that it will go into the right
# place in the overall sexp tree. By the time we finish parsing, just a single result will
# remain, which is the value returned.
#
# @api private
- # @since 2.0.0
+ # @since 2.1.0
class Parser < Temple::Parser
ERB_PATTERN = /(\n|<%%|%%>)|<%(==?|\#)?(.*?)?-?%>/m
IF_UNLESS_CASE_LINE_RE = /\A\s*(if|unless|case)\b/
BLOCK_LINE_RE = /\s*((\s+|\))do|\{)(\s*\|[^|]*\|)?\s*\Z/