Skip to content

Mangled Syntax Problem #69

Closed
Closed
@Petercopter

Description

@Petercopter

syntax_tree: 5.0.0
syntax_tree-haml: 2.0.0

Using the VSCode extension, format on save.

Given this line:

%h1= @page.new_record? ? "New #{@page.type.titleize}" : 'Edit Page'

syntax_tree does this:

%h1 page.new_record? ? "New #{@page.type.titleize}" : 'Edit Page

For now I'll just do

%h1
  = @page.new_record? ? "New #{@page.type.titleize}" : 'Edit Page'

Which doesn't trigger the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions