Skip to content

Commit

Permalink
fix unit tests #321
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 5, 2024
1 parent 31fcb81 commit f57c53e
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 21 deletions.
14 changes: 9 additions & 5 deletions dist/lips.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions dist/lips.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/lips.esm.min.js

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/lips.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/lips.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/std.min.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/std.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/std.xcb
Binary file not shown.
1 change: 1 addition & 0 deletions lib/bootstrap.scm
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@
(token lexer.__token__)
(offset (+ token.col 2))
(re (regex (string-append "\\n\\s{1," (repr offset) "}") "g")))
(print token)
`(string-append ,@(map (lambda (expr)
(if (string? expr)
(begin
Expand Down
6 changes: 5 additions & 1 deletion src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,11 @@ class Lexer {
var found = this.next_token();
if (found) {
this._token = this.__input__.substring(this._i, this._next);
read_only(this, '__token__', this.token(true));
if (!this.__token__) {
// handle case when accessing __token__ from the syntax extension
// (e.g. string interpolation) as the first expression in a REPL
read_only(this, '__token__', this.token(true));
}
return this.token(meta);
}
return eof;
Expand Down

0 comments on commit f57c53e

Please sign in to comment.