Skip to content

Unicode compatibility #14

@hhaensel

Description

@hhaensel

There are (at least) two cases where unicode characters in f"..." expressions currently fail due to index arithmetics:

  • directly preceeding format expressions
  • at the end of the f"..." expression

Replacing index arithmetics by prevind() and nextind(), e.g. j-1 => prevind(s, j), would solve the problem.

StrLiterals has the same problem, and I have already submitted a PR. I also have version for StringLiterals at hand if you are interested ;-)
But you indicated that you are going to no longer support StringLiterals ...

Two expressions which currently fail:

@test f"π(22)" == "π4"
@test f"π = (2
90)°" == "π = 180°"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions