Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dhowe committed Nov 13, 2023
1 parent c4bac0d commit 5666d12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/riscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ class RiScript {
for (let i = 1; expr !== last && i <= 10; i++) {
last = expr;

if (opts.trace) console.log('-'.repeat(20) + ' Pass#' + i + ' ' + '-'.repeat(20));
if (opts.trace) console.log('-'.repeat(20)
+ ' Pass#' + i + ' ' + '-'.repeat(20));

opts.input = expr;
expr = this.lexParseVisit(opts); // do it
Expand All @@ -181,7 +182,8 @@ class RiScript {
// check for unresolved symbols ([$#]) after removing HTML entities
if (!this.silent && !this.RiTa.SILENT) {
if (this.ValidSymbolRE.test(expr.replace(HtmlEntities, ''))) {
console.warn('[WARN] Unresolved symbol(s) in "' + expr.replace(/\n/g, '\\n') + '" ');
console.warn('[WARN] Unresolved symbol(s) in "'
+ expr.replace(/\n/g, '\\n') + '" ');
}
}

Expand Down

0 comments on commit 5666d12

Please sign in to comment.