Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the word But to the list of tokens #2046

Merged
merged 1 commit into from Jan 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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