Skip to content

Escaped characters in strings not ignored in 2.0 version #1774

@diafour

Description

@diafour

Hello! I use the latest version of codespell in CI. Yesterday everything was ok, but the new release gives errors about escaped characters.

A minimal reproducible example is simple:

cat hello.c
#include <stdio.h>

int main() {
  printf("CodeSpell do not ignore escaped chars\nin strings.");
  return 0;
}

codespell==1.17.1 sees no problem in that file.

codespell==2.0.0 gives this message:

hello.c:4: nin ==> inn, min, bin, nine

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions