Skip to content

skip_comment() does not handle unterminated comment #8

@cm1776

Description

@cm1776

In spi.py (https://github.com/rspivak/lsbasi/blob/master/part15/spi.py), the skip_comment() function (starts on line 172) does not properly handle input source that contains an un-terminated comment.

For example, when run on the input below, spi.py hangs:

PROGRAM Test;
VAR
a : INTEGER;
BEGIN
a := 10 * 25; { Un-terminated comment. FREEZE!
END.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions