lib/component_embedded_ruby/parser/tag_parser.rb
# If the next two elements are </, we can safely asume it's meant to
# close the current tag and lets us avoid having to attempt parsing
# children.
If the next two elements are </, we can safely asume it's meant to
close the current tag and lets us avoid having to attempt parsing
children.
If the next two elements are < / we can safely asume it ' s meant to close the current tag and lets us avoid having to attempt parsing children .
def children?
        return true if current_token.type != :open_carrot
        return true if peek_token&.type != :slash
        false
      end
def children? return true if current_token . type != :open_carrot return true if peek_token &. type != :slash false end
If the next two elements are </, we can safely asume it's meant to
close the current tag and lets us avoid having to attempt parsing
children.
If the next two elements are < / we can safely asume it ' s meant to close the current tag and lets us avoid having to attempt parsing children .