summaryrefslogtreecommitdiff
path: root/pygments/lexers/robotframework.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/robotframework.py')
-rw-r--r--pygments/lexers/robotframework.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/robotframework.py b/pygments/lexers/robotframework.py
index 3c212f5e..6c7cda16 100644
--- a/pygments/lexers/robotframework.py
+++ b/pygments/lexers/robotframework.py
@@ -4,7 +4,7 @@
Lexer for Robot Framework.
- :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -285,7 +285,7 @@ class KeywordCall(Tokenizer):
class GherkinTokenizer:
- _gherkin_prefix = re.compile('^(Given|When|Then|And) ', re.IGNORECASE)
+ _gherkin_prefix = re.compile('^(Given|When|Then|And|But) ', re.IGNORECASE)
def tokenize(self, value, token):
match = self._gherkin_prefix.match(value)