aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Alejandro Agüero <saaguero@users.gitlab.com>2017-07-20 16:18:56 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-03-19 15:33:48 +0100
commit0a046b5978be94e5bd86487b41bd921745dc50ad (patch)
treecc14707c79f399d098249df024775449bc3f9227
parent38511212bffa8e4dc0bed9c8fd0086ade5197144 (diff)
downloadcucutags-master.tar.gz
Keyword "and" is considered as part of the regexHEADmaster
Fixes: gb#ab139b9
-rwxr-xr-xcucutags.py4
1 files 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):