From 0a046b5978be94e5bd86487b41bd921745dc50ad Mon Sep 17 00:00:00 2001 From: Santiago Alejandro Agüero Date: Thu, 20 Jul 2017 16:18:56 +0200 Subject: Keyword "and" is considered as part of the regex Fixes: gb#ab139b9 --- cucutags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cucutags.py b/cucutags.py index 28bce1a..4e6ca75 100755 --- a/cucutags.py +++ b/cucutags.py @@ -41,8 +41,8 @@ class Target(object): """ Represents one line from the Python modules. """ - pattern = re.compile(r"^\s*@(step|when|given|then)\(u?'(.*)'\)") - cleanRE = re.compile('^(step|when|given|then)\s*', re.IGNORECASE) + pattern = re.compile(r"^\s*@(step|when|given|then|and)\(u?'(.*)'\)") + cleanRE = re.compile('^(step|when|given|then|and)\s*', re.IGNORECASE) result = 'targets' def __init__(self, text, filename, lineno): -- cgit