Skip to content

Detect errors involving curved quotation marks #5133

@chrstphrchvz

Description

@chrstphrchvz

I was helping some students go through some online examples. Many of them attempted to copy statements directly from the example, some of which use string literals with curved quotation marks instead of straight ones (like how they would be if typed manually):

text(“Stroke size: 3”, x, y)

instead of

text("Stroke size: 3", x, y)

This results in the linting error:

Syntax error on tokens, ArgumentList expected instead

and compilation error:

unexpected char: '\'

This might also happen if the source code is put through a word processor.

Would it be possible for Processing to reword these messages? The cause in this case is rather difficult for anyone to spot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe have very little time and would like some helphighWe'd like to fix this as soon as possiblepreprocessor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions