Skip to content

Is there a way to specify token separator? #306

Description

@happyHruska

First of all, thank you for this extension! It makes my code comments and printouts much more readable :)

I’ve run into an issue when using \n and \t for string formatting in python print() calls. It seems that the escaped characters 'n' and 't' are merged with the following word, which is then correctly detected as a spelling error.

For example:

print("this\nis\na\nmulti-line\n\tindented\ntest")

results in words "is", "a", "multi", "indented" and "test" being interpreted incorrectly for spell checking.

Is there a way to configure Codebook to treat \n and \t as token separators or ignore them for spelling purposes?

Alternatively, is there already a way to prevent spelling errors from being reported for strings like the example above?

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