summaryrefslogtreecommitdiff
path: root/pygments/lexers/robotframework.py
diff options
context:
space:
mode:
authorFabrizio Riguzzi <fabrizio.riguzzi@unife.it>2022-01-25 10:22:22 +0100
committerFabrizio Riguzzi <fabrizio.riguzzi@unife.it>2022-01-25 10:22:22 +0100
commite35ad8c2169e77d94e266f633bc27f8d182e8b77 (patch)
tree66aa3e93ae33af7d7bbadb363a2777e44dc243cf /pygments/lexers/robotframework.py
parent4e7e60a874c61987228d403354f9dd47721ba949 (diff)
parent308f4c8f2992431d3b1fcdcc313b43182cb93ff3 (diff)
downloadpygments-git-e35ad8c2169e77d94e266f633bc27f8d182e8b77.tar.gz
Merge branch 'master' of github.com:friguzzi/pygments
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)