Skip to content

Commit

Permalink
Add the word But to the list of tokens (#2046)
Browse files Browse the repository at this point in the history
  • Loading branch information
HelioGuilherme66 committed Jan 24, 2022
1 parent 1458c66 commit 74af2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygments/lexers/robotframework.py
Expand Up @@ -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.
"""

Expand Down Expand Up @@ -285,7 +285,7 @@ def _tokenize(self, value, index):


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)
Expand Down

0 comments on commit 74af2e2

Please sign in to comment.