Skip to content

Commit f6e6a0d

Browse files
committed
Update dependencies
1 parent 86ae6f9 commit f6e6a0d

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

composer.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "pre/deferred",
44
"license": "MIT",
55
"require": {
6-
"pre/plugin": "*"
6+
"pre/plugin": "^0.11.0"
77
},
88
"autoload": {
99
"psr-4": {
@@ -22,16 +22,5 @@
2222
"macros": [
2323
"source/macros.yay"
2424
]
25-
},
26-
"repositories": [
27-
{
28-
"type": "path",
29-
"url": "../pre-plugin",
30-
"options": {
31-
"symlink": false
32-
}
33-
}
34-
],
35-
"minimum-stability": "dev",
36-
"prefer-stable": true
25+
}
3726
}

source/macros.yay

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ $(macro :recursion) {
77
token("{"), layer() as body, token("}")
88
),
99
optional(token(";")),
10-
_() as scope,
11-
_() as simple
10+
_() as scope
1211
))
1312
} >> function($ast) {
1413
$bound = false;
@@ -38,11 +37,6 @@ $(macro :recursion) {
3837

3938
if ($bound) {
4039
$ast->append($scope);
41-
} else {
42-
$simple = new \Yay\Ast("simple");
43-
$simple->push(new \Yay\Ast());
44-
45-
$ast->append($simple);
4640
}
4741
} >> {
4842
$$(collapse($$(trim(
@@ -52,7 +46,7 @@ $(macro :recursion) {
5246
}]["fn"]);
5347
})
5448

55-
$(simple ? {
49+
$(scope ! {
5650
$deferred = new \Pre\Deferred\Deferred(function () {
5751
$$(trim($(body)))
5852
});

0 commit comments

Comments
 (0)