File: //opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/__pycache__/bdd.cpython-311.pyc
�
�;fi � �d � d Z ddlmZmZ ddlmZmZmZmZm Z m
Z
mZmZ dgZ
G d� de� � ZdS )z�
pygments.lexers.bdd
~~~~~~~~~~~~~~~~~~~
Lexer for BDD(Behavior-driven development).
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�
RegexLexer�include)�Comment�Keyword�Name�String�Number�Text�Punctuation�
Whitespace�BddLexerc
�� � e Zd ZdZdZdgZdgZdgZdZdZ dZ
d efgd
efde
j fdefd
e
j fgdefgdefe
ef ed� � ed� � ed� � defgd�Zd� ZdS )r
z�
Lexer for BDD(Behavior-driven development), which highlights not only
keywords, but also comments, punctuations, strings, numbers, and variables.
�Bdd�bddz *.featurez
text/x-bddz9https://en.wikipedia.org/wiki/Behavior-driven_developmentz2.11zQGiven|When|Then|Add|And|Feature|Scenario Outline|Scenario|Background|Examples|Butz^\s*#.*$z,(<|>|\[|\]|=|\||:|\(|\)|\{|\}|,|\.|;|-|_|\$)z((?<=\<)[^\\>]+(?=\>))z
"([^\"]*)"z^@\S+z&(\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?z\n|\s+�comments�
miscellaneous�numbersz\S+)r r r �rootc � � d S )N� )�self�texts �F/opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/bdd.py�analyse_textzBddLexer.analyse_text8 s � ��� N)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�url�
version_added�
step_keywordsr r r �Variabler �Labelr r r r r
�tokensr r r r r
r
s� � � � � � �� �
�D��g�G��
�I���I�
E�C��M�9�M�
�'�"�
� =�k�J�
&��
�6�
�F�#�
�t�z�"�
� 7��?�
� �
�#�
�G�$��G�J����G�O�$�$��G�I���
�T�N�
�� �F�.� � � � r N)r �pygments.lexerr r �pygments.tokenr r r r r r
r r �__all__r
r r r �<module>r- s� ��� � /� .� .� .� .� .� .� .�� � � � � � � � � � � � � � � � � � � � �,��(� (� (� (� (�z� (� (� (� (� (r