Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
pygments
/
lexers
/
File Content:
make.pyc
� _aTc @ s� d Z d d l Z d d l m Z m Z m Z m Z m Z m Z d d l m Z m Z m Z m Z m Z m Z m Z d d l m Z d d d g Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s� pygments.lexers.make ~~~~~~~~~~~~~~~~~~~~ Lexers for Makefiles and similar. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. i����N( t Lexert RegexLexert includet bygroupst do_insertionst using( t Textt Commentt Operatort Keywordt Namet Stringt Punctuation( t BashLexert MakefileLexert BaseMakefileLexert CMakeLexerc B sw e Z d Z d Z d d d d g Z d d d d d d g Z d g Z e j d � Z e j d � Z d � Z d � Z RS( s� Lexer for BSD and GNU make extensions (lenient enough to handle both in the same file even). *Rewritten in Pygments 0.10.* t Makefilet maket makefilet mft bsdmakes *.maks *.mks Makefile.*t GNUmakefiles text/x-makefiles� ^(?:\.\s*(include|undef|error|warning|if|else|elif|endif|for|endfor)|\s*(ifeq|ifneq|ifdef|ifndef|else|endif|-?include|define|endef|:|vpath)|\s*(if|else|endif))(?=\s)s ^\s*@?#c c s g } | j t � } d } t | j � } t } x� | D]� } | j j | � sU | r� | j t | � d t j | f g f � | j � j d � } q7 | j j | � r� | j t | � d t | f g f � q7 | | 7} q7 Wx% t | | j | � � D] } | Vq� Wd S( Nt i s \( t splitlinest TrueR t optionst Falset r_specialt matcht appendt lenR t Preproct stript endswitht r_commentR t get_tokens_unprocessed( t selft textt inst linest donet lext backslashflagt linet item( ( s8 /usr/lib/python2.7/site-packages/pygments/lexers/make.pyR$ . s ((c C s t j d | � r d Sd S( Ns \$\([A-Z_]+\)g�������?( t ret search( R&