File: //opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/bdd.cpython-310.pyc
o
;jl � @ sV d Z ddlmZmZ ddlmZmZmZmZm Z m
Z
mZmZ dgZ
G dd� de�ZdS )z�
pygments.lexers.bdd
~~~~~~~~~~~~~~~~~~~
Lexer for BDD(Behavior-driven development).
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�
RegexLexer�include)�Comment�Keyword�Name�String�Number�Text�Punctuation�
Whitespace�BddLexerc
@ s� e Zd ZdZdZdgZdgZdgZdZdZ dZ
d efgd
efde
jfdefd
e
jfgdefgdefe
efed�ed�ed�defgd�Zdd� ZdS )r z�
Lexer for BDD(Behavior-driven development), which highlights not only
keywords, but also comments, punctuations, strings, numbers, and variables.
ZBddZbddz *.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 C s d S )N� )�self�textr r �G/opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/bdd.py�analyse_text8 s zBddLexer.analyse_textN)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenamesZ mimetypes�urlZ
version_addedZ
step_keywordsr r
r ZVariabler ZLabelr r r r r �tokensr r r r r r s6 �����N)r Zpygments.lexerr r Zpygments.tokenr r r r r r r
r �__all__r r r r r �<module> s
(