forked from neos/neos-development-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: Fusion/AFX preserve dots in escaped paths
fixes neos#3112 - Fusion parser: dont split paths at dots, who are inside quotes. - AFX: allow quoted attribute identifier. Example: AFX: ```html <div '@foo.bar'='baz'></div> ``` Fusion: ```ts Neos.Fusion:Tag { attributes.'@foo.bar' = 'baz' } ``` Fusion ast (excerpt): ```php 'attributes' => [ '@foo.bar' => 'baz' ] ``` Before this, AFX doesnt allow quoted attribute identifier, and the Fusion Parser split at dots in quotes too, making those paths nested.
- Loading branch information
Showing
6 changed files
with
183 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Neos.Fusion/Tests/Unit/Core/Fixtures/ParserTestFusionFixture25.fusion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
// | ||
// Fusion Fixture 25 | ||
// | ||
// Checks if quoted paths will escape the @ char | ||
// and if dots inside the quotes will not be interpreted as nested. | ||
|
||
attributes."@notAMeta" = "value" | ||
attributes."@notAMeta.notNested.reallyNotNested.string" = "value" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters