Comment on last line of file causes scanner to die #34

Closed
opened 2024-05-18 22:07:23 +00:00 by scott · 1 comment
Owner

Test case "1 \n & foo"

Expected result: 1

Actual result:

error: bad slot #1, expected string, symbol, keyword or buffer, got nil
  in buffer/push [src/core/buffer.c] on line 500
  in recur [scanner.janet] (tailcall) on line 246, column 34
  in recur [scanner.janet] (tailcall) on line 331, column 26
  in run [repl] (tailcall) on line 391, column 16
Test case `"1 \n & foo"` Expected result: `1` Actual result: ``` error: bad slot #1, expected string, symbol, keyword or buffer, got nil in buffer/push [src/core/buffer.c] on line 500 in recur [scanner.janet] (tailcall) on line 246, column 34 in recur [scanner.janet] (tailcall) on line 331, column 26 in run [repl] (tailcall) on line 391, column 16 ```
scott added this to the Computer Class milestone 2024-05-18 22:07:23 +00:00
scott added the
bug
now
labels 2024-05-18 22:07:23 +00:00
scott self-assigned this 2024-05-18 22:07:23 +00:00
Author
Owner

Fixed in 943e96203e

Fixed in https://alea.ludus.dev/twc/ludus/commit/943e96203e149d775446c864a2929ab2c89f3f75
scott closed this issue 2024-06-04 16:00:14 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/ludus#34
No description provided.