Skip to content

A case of missed delimiter in string literals and comments #18

@ruv

Description

@ruv

When parsing (see 3.4.1 Parsing), if a delimiter character is not present in the parse area, the selected string continues up to and including the last character in the parse area.

This meaning of parsing is used in the words (, s", c". Therefore, if there is no delimiter in the parse area, the system is not allowed to throw an exception or even display a warning.

In practice, this is not used in programs — if the ) or " delimiter is absent, then most likely it is typo.

Perhaps, an ambiguous condition should be declared for these words when the corresponding delimiter is absent in the parse area.

This ambiguous condition will allow to throw an exception or accept a multi-line string literal if a delimiter is missed in the parse area.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions