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.
References are a special case of assignments. The following are all valid references (as of TYPO3 12):
Those are invalid references and therfore interpreted as assignments:
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.