Skip to content

Handle php line comments in attributes #5

@arnoson

Description

@arnoson
<snippet:test
  $id="<?= $id // a comment ?>"
  $fu="123"
/>

When transformed, the comma is placed after the comment and thereby ignored by php.

<?php snippet('test', __snippetData([
  'id' => $id // a comment,
  'fu' => 123,
])) ?>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions