Skip to content

Problem parsing references #2

@Teddytrombone

Description

@Teddytrombone

References are a special case of assignments. The following are all valid references (as of TYPO3 12):

tt_content.text =< lib.myIdentifier
tt_content.text = < lib.myIdentifier
lib.nav.wrap =<ul id="nav">|</ul>

Those are invalid references and therfore interpreted as assignments:

tt_content.text =< lib.myIdentifier foo
tt_content.text = < lib.myIdentifier bar
lib.nav.wrap = <ul id="nav">|</ul>

It would be easier, if a reference would have =< as a operator, without optional spaces between. But as it is defined, I found no 100% solution to distinguish reference lines from assignment lines. The current code is just a kind of an approximation. Maybe this could be solved with an external scanner or with a combination of other different rules.

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