rip-lang 3.9.0 → 3.9.1

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/src/lexer.js CHANGED
@@ -758,6 +758,16 @@ export class Lexer {
758
758
  if (this.inRenderBlock && LINE_CONTINUER_RE.test(this.chunk) && /^\s*\./.test(this.chunk)) {
759
759
  return false;
760
760
  }
761
+ // Inside render blocks, a bare . at line start is div shorthand, not continuation
762
+ if (this.inRenderBlock && this.prevTag() === '.') {
763
+ let len = this.tokens.length;
764
+ if (len >= 2) {
765
+ let beforeDot = this.tokens[len - 2][0];
766
+ if (beforeDot === 'INDENT' || beforeDot === 'TERMINATOR' || beforeDot === 'OUTDENT') {
767
+ return false;
768
+ }
769
+ }
770
+ }
761
771
  return LINE_CONTINUER_RE.test(this.chunk) || UNFINISHED.has(this.prevTag());
762
772
  }
763
773