rip-lang 3.13.53 → 3.13.55

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 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.53-blue.svg" alt="Version"></a>
12
+ <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.55-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
@@ -1003,8 +1003,6 @@
1003
1003
  "def",
1004
1004
  "component",
1005
1005
  "render",
1006
- "offer",
1007
- "accept",
1008
1006
  "enum",
1009
1007
  "interface"
1010
1008
  ]);
@@ -3513,6 +3511,23 @@ Expecting ${expected.join(", ")}, got '${this.tokenNames[symbol] || symbol}'`;
3513
3511
  return Array.isArray(target) && target[0] === "." && target[1] === "this";
3514
3512
  }
3515
3513
  function installComponentSupport(CodeGenerator, Lexer2) {
3514
+ const origClassify = Lexer2.prototype.classifyKeyword;
3515
+ Lexer2.prototype.classifyKeyword = function(id, fallback, data) {
3516
+ if (id === "offer" || id === "accept") {
3517
+ let depth = 0;
3518
+ for (let i = this.tokens.length - 1;i >= 0; i--) {
3519
+ const tag = this.tokens[i][0];
3520
+ if (tag === "OUTDENT")
3521
+ depth++;
3522
+ else if (tag === "INDENT")
3523
+ depth--;
3524
+ if (depth < 0 && this.tokens[i - 1]?.[0] === "COMPONENT")
3525
+ return id.toUpperCase();
3526
+ }
3527
+ return fallback;
3528
+ }
3529
+ return origClassify.call(this, id, fallback, data);
3530
+ };
3516
3531
  Lexer2.prototype.rewriteRender = function() {
3517
3532
  let gen2 = (tag, val, origin) => {
3518
3533
  let t = [tag, val];
@@ -8664,8 +8679,8 @@ globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
8664
8679
  return new CodeGenerator({}).getComponentRuntime();
8665
8680
  }
8666
8681
  // src/browser.js
8667
- var VERSION = "3.13.52";
8668
- var BUILD_DATE = "2026-02-27@09:18:12GMT";
8682
+ var VERSION = "3.13.55";
8683
+ var BUILD_DATE = "2026-02-27@09:25:16GMT";
8669
8684
  if (typeof globalThis !== "undefined") {
8670
8685
  if (!globalThis.__rip)
8671
8686
  new Function(getReactiveRuntime())();