3 ��Xt � @ s| d Z ddlZddlmZmZmZmZmZ ddlm Z m Z mZmZm Z mZmZmZ ddgZG dd� de�ZG dd� de�ZdS ) z� pygments.lexers.bibtex ~~~~~~~~~~~~~~~~~~~~~~ Lexers for BibTeX bibliography data and styles :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�ExtendedRegexLexer�include�default�words)�Name�Comment�String�Error�Number�Text�Keyword�Punctuation�BibTeXLexer�BSTLexerc @ sl e Zd ZdZdZddgZdgZdgZej Z dZdjd e d e �Z dd� Zd d� Zed�defdejd.fdejd/fde ejd0fdefged�dedfged�dedfged�dejd1fged�dedfed�ged�e ejd2fed�ged�d edfged�e ejfd!ed"fd#ed$fd%efd&efed�gd#ed$fd!edfd'efgd#ed(fd)edfd*efgd+efgd,�Zd-S )3r zQ A lexer for BibTeX bibliography data format. .. versionadded:: 2.2 ZBibTeXZbibZbibtexz*.bibz text/x-bibtexz@!$&*+\-./:;<>?\[\\\]^`|~z[{0}][{1}]*za-z_z\wc c s, |j � }||_|j� t|fV |j� |_d S )N)�group� opening_brace�startr �end�pos)�self�match�ctxr � r �/usr/lib/python3.6/bibtex.py�open_brace_callback&