rip-lang 3.13.53 → 3.13.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/dist/rip.js +19 -3
- package/docs/dist/rip.min.js +182 -182
- package/docs/dist/rip.min.js.br +0 -0
- package/package.json +1 -1
- package/src/components.js +19 -0
- package/src/lexer.js +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.
|
|
12
|
+
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.54-blue.svg" alt="Version"></a>
|
|
13
13
|
<a href="#zero-dependencies"><img src="https://img.shields.io/badge/dependencies-ZERO-brightgreen.svg" alt="Dependencies"></a>
|
|
14
14
|
<a href="#"><img src="https://img.shields.io/badge/tests-1%2C300%2F1%2C300-brightgreen.svg" alt="Tests"></a>
|
|
15
15
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
|
package/docs/dist/rip.js
CHANGED
|
@@ -1004,7 +1004,6 @@
|
|
|
1004
1004
|
"component",
|
|
1005
1005
|
"render",
|
|
1006
1006
|
"offer",
|
|
1007
|
-
"accept",
|
|
1008
1007
|
"enum",
|
|
1009
1008
|
"interface"
|
|
1010
1009
|
]);
|
|
@@ -3513,6 +3512,23 @@ Expecting ${expected.join(", ")}, got '${this.tokenNames[symbol] || symbol}'`;
|
|
|
3513
3512
|
return Array.isArray(target) && target[0] === "." && target[1] === "this";
|
|
3514
3513
|
}
|
|
3515
3514
|
function installComponentSupport(CodeGenerator, Lexer2) {
|
|
3515
|
+
const origClassify = Lexer2.prototype.classifyKeyword;
|
|
3516
|
+
Lexer2.prototype.classifyKeyword = function(id, fallback, data) {
|
|
3517
|
+
if (id === "accept") {
|
|
3518
|
+
let depth = 0;
|
|
3519
|
+
for (let i = this.tokens.length - 1;i >= 0; i--) {
|
|
3520
|
+
const tag = this.tokens[i][0];
|
|
3521
|
+
if (tag === "OUTDENT")
|
|
3522
|
+
depth++;
|
|
3523
|
+
else if (tag === "INDENT")
|
|
3524
|
+
depth--;
|
|
3525
|
+
if (depth < 0 && this.tokens[i - 1]?.[0] === "COMPONENT")
|
|
3526
|
+
return "ACCEPT";
|
|
3527
|
+
}
|
|
3528
|
+
return fallback;
|
|
3529
|
+
}
|
|
3530
|
+
return origClassify.call(this, id, fallback, data);
|
|
3531
|
+
};
|
|
3516
3532
|
Lexer2.prototype.rewriteRender = function() {
|
|
3517
3533
|
let gen2 = (tag, val, origin) => {
|
|
3518
3534
|
let t = [tag, val];
|
|
@@ -8664,8 +8680,8 @@ globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
|
|
|
8664
8680
|
return new CodeGenerator({}).getComponentRuntime();
|
|
8665
8681
|
}
|
|
8666
8682
|
// src/browser.js
|
|
8667
|
-
var VERSION = "3.13.
|
|
8668
|
-
var BUILD_DATE = "2026-02-27@09:
|
|
8683
|
+
var VERSION = "3.13.54";
|
|
8684
|
+
var BUILD_DATE = "2026-02-27@09:22:40GMT";
|
|
8669
8685
|
if (typeof globalThis !== "undefined") {
|
|
8670
8686
|
if (!globalThis.__rip)
|
|
8671
8687
|
new Function(getReactiveRuntime())();
|