Skip to content

"extends" keyword throws Extends should be very first statement in file #30

@coneforapine

Description

@coneforapine

I don't really know what causes it but here's my files

layout.pug

html
  head
    title My Site
  body
    block content
    footer
      p 
      | Some footer text

welcome.pug

extends layout

block content
    h1 Welcome #{name}

When I comment out if statement which throws the exception it works fine but I don't think it will catch unexpected "extends" keyword...

vendor\phug\parser\src\Phug\Parser\TokenHandler\ImportTokenHandler.php line 35

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions