Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
pygments
/
lexers
/
File Content:
lisp.pyc
� _aTc @ s d Z d d l Z d d l 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 m Z m Z m Z d d l m Z d d d d d g Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s� pygments.lexers.lisp ~~~~~~~~~~~~~~~~~~~~ Lexers for Lispy languages. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. i����N( t RegexLexert includet bygroupst wordst default( t Textt Commentt Operatort Keywordt Namet Stringt Numbert Punctuationt Literalt Error( t PythonLexert SchemeLexert CommonLispLexert HyLexert RacketLexert NewLispLexerc � B s� e Z d Z d Z d d g Z d d g Z d d g Z dZ d Z d� Z i d� e j f d� e j d� f d� e d� f d� e f d� e f d� e j f d� e j f d� e f d� e e j f d� e j f d� e j f d� e f d� d� j d� � e D� � e f d� e e j f d� e e j f d� d� j d� � e D� � e j f d e e j f e e j f de f de f g d6d� e j df de j df de j f de j f g d� 6d e df d e df de f g d� 6Z RS( s� A Scheme lexer, parsing a stream and outputting the tokens needed to highlight scheme code. This lexer could be most probably easily subclassed to parse other LISP-Dialects like Common Lisp, Emacs Lisp or AutoLisp. This parser is checked with pastes from the LISP pastebin at http://paste.lisp.org/ to cover as much syntax as possible. It supports the full Scheme syntax as defined in R5RS. .. versionadded:: 0.6 t Schemet schemet scms *.scms *.sss text/x-schemes application/x-schemet lambdat definet ift elset condt andt ort caset lets let*t letrect begint dot delays set!s =>t quotet quasiquotet unquotes unquote-splicings define-syntaxs let-syntaxs letrec-syntaxs syntax-rulest *t +t -t /t <s <=t =t >s >=t abst acost anglet appendt applyt asint assoct assqt assvt atans boolean?t caaaart caaadrt caaart caadart caaddrt caadrt caart cadaart cadadrt cadart caddart cadddrt caddrt cadrs call-with-current-continuations call-with-input-files call-with-output-files call-with-valuess call/cct cart cdaaart cdaadrt cdaart cdadart cdaddrt cdadrt cdart cddaart cddadrt cddart cdddart cddddrt cdddrt cddrt cdrt ceilings char->integers char-alphabetic?s char-ci<=?s char-ci<?s char-ci=?s char-ci>=?s char-ci>?s char-downcases char-lower-case?s char-numeric?s char-ready?s char-upcases char-upper-case?s char-whitespace?s char<=?s char<?s char=?s char>=?s char>?s char?s close-input-ports close-output-ports complex?t const coss current-input-ports current-output-portt denominatort displays dynamic-winds eof-object?s eq?s equal?s eqv?t evals even?s exact->inexacts exact?t expt exptt floors for-eacht forcet gcds imag-parts inexact->exacts inexact?s input-port?s integer->chars integer?s interaction-environmentt lcmt lengtht lists list->strings list->vectors list-refs list-tails list?t loadt logt magnitudes make-polars make-rectangulars make-strings make-vectort mapt maxt membert memqt memvt mint modulos negative?t newlinet nots null-environments null?s number->strings number?t numerators odd?s open-input-files open-output-files output-port?s pair?s peek-chars port?s positive?s procedure?t quotients rational?t rationalizet reads read-chars real-parts real?t remaindert reverset rounds scheme-report-environments set-car!s set-cdr!t sint sqrtt strings string->lists string->numbers string->symbols string-appends string-ci<=?s string-ci<?s string-ci=?s string-ci>=?s string-ci>?s string-copys string-fill!s string-lengths string-refs string-set!s string<=?s string<?s string=?s string>=?s string>?s string?t substrings symbol->strings symbol?t tans transcript-offs transcript-ont truncatet valuest vectors vector->lists vector-fill!s vector-lengths vector-refs vector-set!s vector?s with-input-from-files with-output-to-filet writes write-chars zero?s [\w!$%&*+,/:<=>?@^~|-]+s ;.*$s #\|s multiline-comments #;\s*\(s commented-forms #!r6rss \s+s -?\d+\.\d+s -?\d+s "(\\\\|\\"|[^"])*"t 's'