3 ��Xjn � @ s� d Z ddlZddlmZmZmZmZmZmZ ddl m Z mZmZm Z mZmZmZmZmZmZ ddlmZ dddd d ddd dddddddgZG dd� de�ZG dd� de�ZG dd� de�Zdd� ZG dd � d e�ZG dd � d e�ZG dd� de�ZG dd� de�ZG dd � d e�ZG dd� de�Z G d d� de�Z!G d!d� de�Z"G d"d� de�Z#G d#d� de�Z$G d$d� de�Z%G d%d� de�Z&dS )&z� pygments.lexers.configs ~~~~~~~~~~~~~~~~~~~~~~~ Lexers for configuration file formats. :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�default�words�bygroups�include�using) �Text�Comment�Operator�Keyword�Name�String�Number�Punctuation� Whitespace�Literal)� BashLexer�IniLexer�RegeditLexer�PropertiesLexer�KconfigLexer�Cfengine3Lexer�ApacheConfLexer�SquidConfLexer�NginxConfLexer�LighttpdConfLexer�DockerLexer�TerraformLexer�TermcapLexer� TerminfoLexer�PkgConfigLexer�PacmanConfLexerc @ sp e Zd ZdZdZdddgZdddgZd d gZddefd e j fdefdee jeeee�fde jfgiZdd� ZdS )r z5 Lexer for configuration files in INI style. ZINIZiniZcfgZdosiniz*.iniz*.cfgz*.infz text/x-iniztext/inf�rootz\s+z[;#].*z\[.*?\]$z*(.*?)([ \t]*)(=)([ \t]*)(.*(?:\n[ \t].+)*)z(.+?)$c C s2 | j d�}|dk rdS | d dko0| |d dkS )N� � Fr �[� �])�find)�textZnpos� r* �/usr/lib/python3.6/configs.py�analyse_text0 s zIniLexer.analyse_textN)�__name__� __module__�__qualname__�__doc__�name�aliases� filenames� mimetypesr r �Singler r r � Attributer r �tokensr, r* r* r* r+ r s c @ s� e Zd ZdZdZdgZdgZdgZdefdefde j fd eee eje�fd eejee e�dfdeejee e�dfgd e dfdeejee�dfdedfed�gd�Zdd� ZdS )r z� Lexer for `Windows Registry <http://en.wikipedia.org/wiki/Windows_Registry#.REG_files>`_ files produced by regedit. .. versionadded:: 1.6 Zreg�registryz*.regztext/x-windows-registryzWindows Registry Editor.*z\s+z[;#].*z(\[)(-?)(HKEY_[A-Z_]+)(.*?\])$z)("(?:\\"|\\\\|[^"])+")([ \t]*)(=)([ \t]*)�valuez(.*?)([ \t]*)(=)([ \t]*)�-z#popz1(dword|hex(?:\([0-9a-fA-F]\))?)(:)([0-9a-fA-F,]+)z.+)r"