summaryrefslogtreecommitdiff
path: root/pylint/utils/pragma_parser.py
diff options
context:
space:
mode:
authorJeremy Fleischman <jeremyfleischman@gmail.com>2020-06-07 22:51:23 -0700
committerGitHub <noreply@github.com>2020-06-08 07:51:23 +0200
commitfe0a7f7953430f10308d2ba94c14f056e166fe1c (patch)
tree53537bbf5aa91f50d033a8619eb261c0e224ef2e /pylint/utils/pragma_parser.py
parent627d07d249d17c12ed9e1a52044843607a5353d0 (diff)
downloadpylint-git-fe0a7f7953430f10308d2ba94c14f056e166fe1c.tar.gz
Allow numbers in checker names. (#3667)
This fixes https://github.com/PyCQA/pylint/issues/3666.
Diffstat (limited to 'pylint/utils/pragma_parser.py')
-rw-r--r--pylint/utils/pragma_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/utils/pragma_parser.py b/pylint/utils/pragma_parser.py
index 28f04b668..2afbae5a3 100644
--- a/pylint/utils/pragma_parser.py
+++ b/pylint/utils/pragma_parser.py
@@ -39,7 +39,7 @@ ALL_KEYWORDS = "|".join(
TOKEN_SPECIFICATION = [
("KEYWORD", r"\b({:s})\b".format(ALL_KEYWORDS)),
- ("MESSAGE_STRING", r"[A-Za-z\-\_]{2,}"), #  Identifiers
+ ("MESSAGE_STRING", r"[0-9A-Za-z\-\_]{2,}"), #  Identifiers
("ASSIGN", r"="), #  Assignment operator
("MESSAGE_NUMBER", r"[CREIWF]{1}\d*"),
]