Skip to content

[Bug]: @section with inline value cannot be handled #291

@SkyspotEmil

Description

@SkyspotEmil

Description

According to the Laravel documentation a @section() tag can have an "inline" value like this:

@section('title', 'Page Title')

In this case it doesn't have a @endsection tag.

Expected Behavior

The expected behavior is that it can format a document like this, which is taken directly from the Laravel documentation:

<!-- resources/views/child.blade.php -->
 
@extends('layouts.app')
 
@section('title', 'Page Title')
 
@section('sidebar')
    @parent
 
    <p>This is appended to the master sidebar.</p>
@endsection
 
@section('content')
    <p>This is my body content.</p>
@endsection

Actual Behavior

In actuallity the above gives the error SyntaxError: Unpaired condition control structure

Additional Context

version: 3.2.5

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions