Imported Upstream version 1.2.2 upstream/1.2.2
authorJinWang An <jinwang.an@samsung.com>
Tue, 5 Jan 2021 03:14:00 +0000 (12:14 +0900)
committerJinWang An <jinwang.an@samsung.com>
Tue, 5 Jan 2021 03:14:00 +0000 (12:14 +0900)
43 files changed:
CHANGES
PKG-INFO
Pygments.egg-info/PKG-INFO
Pygments.egg-info/SOURCES.txt
docs/build/api.html
docs/build/authors.html
docs/build/changelog.html
docs/build/cmdline.html
docs/build/filterdevelopment.html
docs/build/filters.html
docs/build/formatterdevelopment.html
docs/build/formatters.html
docs/build/index.html
docs/build/installation.html
docs/build/integrate.html
docs/build/lexerdevelopment.html
docs/build/lexers.html
docs/build/moinmoin.html
docs/build/plugins.html
docs/build/quickstart.html
docs/build/rstdirective.html
docs/build/styles.html
docs/build/tokens.html
docs/build/unicode.html
pygments/__init__.py
pygments/formatters/latex.py
pygments/lexers/agile.py
pygments/lexers/compiled.py
pygments/lexers/functional.py
pygments/lexers/other.py
pygments/lexers/text.py
setup.py
tests/support.pyc [new file with mode: 0644]
tests/test_basic_api.pyc [new file with mode: 0644]
tests/test_clexer.pyc [new file with mode: 0644]
tests/test_cmdline.pyc [new file with mode: 0644]
tests/test_examplefiles.pyc [new file with mode: 0644]
tests/test_html_formatter.pyc [new file with mode: 0644]
tests/test_latex_formatter.pyc [new file with mode: 0644]
tests/test_regexlexer.pyc [new file with mode: 0644]
tests/test_token.pyc [new file with mode: 0644]
tests/test_using_api.pyc [new file with mode: 0644]
tests/test_util.pyc [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 342f9a982351f5921cf43d1ea4ad3f0b81bb35b9..b81efa0049460848162d9c9122ccd1296561fe02 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -3,11 +3,21 @@ Pygments changelog
 
 Issue numbers refer to the tracker at http://dev.pocoo.org/projects/pygments/.
 
+Version 1.2.2
+-------------
+(bugfix release, released Jan 02, 2010)
+
+* Removed a backwards incompatibility in the LaTeX formatter that caused
+  Sphinx to produce invalid commands when writing LaTeX output (#463).
+
+* Fixed a forever-backtracking regex in the BashLexer (#462).
+
+
 Version 1.2.1
 -------------
 (bugfix release, released Jan 02, 2010)
 
-* Fix mishandling of an ellipsis in place of the frames in a Python
+* Fixed mishandling of an ellipsis in place of the frames in a Python
   console traceback, resulting in clobbered output.
 
 
@@ -138,17 +148,17 @@ Version 1.0
   because that doesn't keep all newlines at the end when the
   ``stripnl`` lexer option is False.
 
-- Add ``-N`` option to command-line interface to get a lexer name
+- Added ``-N`` option to command-line interface to get a lexer name
   for a given filename.
 
-- Add Tango style, written by Andre Roberge for the Crunchy project.
+- Added Tango style, written by Andre Roberge for the Crunchy project.
 
-- Add Python3TracebackLexer and ``python3`` option to 
+- Added Python3TracebackLexer and ``python3`` option to 
   PythonConsoleLexer.
 
-- Fix a few bugs in the Haskell lexer.
+- Fixed a few bugs in the Haskell lexer.
 
-- Fix PythonTracebackLexer to be able to recognize SyntaxError and
+- Fixed PythonTracebackLexer to be able to recognize SyntaxError and
   KeyboardInterrupt (#360).
 
 - Provide one formatter class per image format, so that surprises like::
@@ -166,7 +176,7 @@ Version 1.0
 
 - Unified Diff lexer supports the "udiff" alias now.
 
-- Fix a few issues in Scala lexer (#367).
+- Fixed a few issues in Scala lexer (#367).
 
 - RubyConsoleLexer now supports simple prompt mode (#363).
 
@@ -184,7 +194,7 @@ Version 0.11.1
 --------------
 (released Aug 24, 2008)
 
-- Fix a Jython compatibility issue in pygments.unistring (#358).
+- Fixed a Jython compatibility issue in pygments.unistring (#358).
 
 
 Version 0.11
index 125a502a5ce02328eb801484d9fe4abb32ee120a..98c415d3ae3a05cbffed783411cdbf497dbc5578 100644 (file)
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: Pygments
-Version: 1.2.1
+Version: 1.2.2
 Summary: Pygments is a syntax highlighting package written in Python.
 Home-page: http://pygments.org/
 Author: Georg Brandl
@@ -19,7 +19,7 @@ Description:
         * a wide range of common languages and markup formats is supported
         * special attention is paid to details, increasing quality by a fair amount
         * support for new languages and formats are added easily
-        * a number of output formats, presently HTML, LaTeX, RTF, SVG and ANSI sequences
+        * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image       formats that PIL supports and ANSI sequences
         * it is usable as a command-line tool and as a library
         * ... and it highlights even Brainfuck!
         
index 125a502a5ce02328eb801484d9fe4abb32ee120a..98c415d3ae3a05cbffed783411cdbf497dbc5578 100644 (file)
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: Pygments
-Version: 1.2.1
+Version: 1.2.2
 Summary: Pygments is a syntax highlighting package written in Python.
 Home-page: http://pygments.org/
 Author: Georg Brandl
@@ -19,7 +19,7 @@ Description:
         * a wide range of common languages and markup formats is supported
         * special attention is paid to details, increasing quality by a fair amount
         * support for new languages and formats are added easily
-        * a number of output formats, presently HTML, LaTeX, RTF, SVG and ANSI sequences
+        * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image       formats that PIL supports and ANSI sequences
         * it is usable as a command-line tool and as a library
         * ... and it highlights even Brainfuck!
         
index c6669e561cefcef755dea148d62323bd4062f296..a885aaa553d6d97fc336376852e0249ab53c7f14 100644 (file)
@@ -133,16 +133,27 @@ scripts/vim2pygments.py
 tests/old_run.py
 tests/run.py
 tests/support.py
+tests/support.pyc
 tests/test_basic_api.py
+tests/test_basic_api.pyc
 tests/test_clexer.py
+tests/test_clexer.pyc
 tests/test_cmdline.py
+tests/test_cmdline.pyc
 tests/test_examplefiles.py
+tests/test_examplefiles.pyc
 tests/test_html_formatter.py
+tests/test_html_formatter.pyc
 tests/test_latex_formatter.py
+tests/test_latex_formatter.pyc
 tests/test_regexlexer.py
+tests/test_regexlexer.pyc
 tests/test_token.py
+tests/test_token.pyc
 tests/test_using_api.py
+tests/test_using_api.pyc
 tests/test_util.py
+tests/test_util.pyc
 tests/dtds/HTML4-f.dtd
 tests/dtds/HTML4-s.dtd
 tests/dtds/HTML4.dcl
index 5f4c5cfe942fd55f9fdd99020bc98a6b8035e4dd..4cf421754cf0e35b2124d3557d365fce0f91405d 100644 (file)
@@ -453,6 +453,6 @@ or a tuple, it is returned as a list.</dd>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:47.524465
+<!-- generated on: 2010-01-02 22:27:10.979303
      file id: api -->
 </html>
\ No newline at end of file
index a201ca4fb7bcc172fadd2c99b056ec0d21e06902..ae566e110f08ea00f40639d3111c35fab3d6bf4f 100644 (file)
@@ -274,6 +274,6 @@ div.toc h2 {
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:47.866019
+<!-- generated on: 2010-01-02 22:27:11.616011
      file id: authors -->
 </html>
\ No newline at end of file
index 955810656af9d6277dcbcca06e493c98f9083847..6e38a8b931f0f52aa16fc2cf666e9e7bad4b1268 100644 (file)
@@ -213,6 +213,8 @@ div.toc h2 {
         <h2>Contents</h2>
         <ul class="contents">
         
+          <li><a href="#version-1-2-2">Version 1.2.2</a></li>
+        
           <li><a href="#version-1-2-1">Version 1.2.1</a></li>
         
           <li><a href="#version-1-2">Version 1.2</a></li>
@@ -249,11 +251,20 @@ div.toc h2 {
       </div>
     
     <p>Issue numbers refer to the tracker at <a class="reference external" href="http://dev.pocoo.org/projects/pygments/">http://dev.pocoo.org/projects/pygments/</a>.</p>
+<div class="section" id="version-1-2-2">
+<h3>Version 1.2.2</h3>
+<p>(bugfix release, released Jan 02, 2010)</p>
+<ul class="simple">
+<li>Removed a backwards incompatibility in the LaTeX formatter that caused
+Sphinx to produce invalid commands when writing LaTeX output (#463).</li>
+<li>Fixed a forever-backtracking regex in the BashLexer (#462).</li>
+</ul>
+</div>
 <div class="section" id="version-1-2-1">
 <h3>Version 1.2.1</h3>
 <p>(bugfix release, released Jan 02, 2010)</p>
 <ul class="simple">
-<li>Fix mishandling of an ellipsis in place of the frames in a Python
+<li>Fixed mishandling of an ellipsis in place of the frames in a Python
 console traceback, resulting in clobbered output.</li>
 </ul>
 </div>
@@ -354,17 +365,17 @@ and the AS3 lexer (#389).</li>
 because that doesn't keep all newlines at the end when the
 <tt class="docutils literal">stripnl</tt> lexer option is False.</p>
 </li>
-<li><p class="first">Add <tt class="docutils literal"><span class="pre">-N</span></tt> option to command-line interface to get a lexer name
+<li><p class="first">Added <tt class="docutils literal"><span class="pre">-N</span></tt> option to command-line interface to get a lexer name
 for a given filename.</p>
 </li>
-<li><p class="first">Add Tango style, written by Andre Roberge for the Crunchy project.</p>
+<li><p class="first">Added Tango style, written by Andre Roberge for the Crunchy project.</p>
 </li>
-<li><p class="first">Add Python3TracebackLexer and <tt class="docutils literal">python3</tt> option to
+<li><p class="first">Added Python3TracebackLexer and <tt class="docutils literal">python3</tt> option to
 PythonConsoleLexer.</p>
 </li>
-<li><p class="first">Fix a few bugs in the Haskell lexer.</p>
+<li><p class="first">Fixed a few bugs in the Haskell lexer.</p>
 </li>
-<li><p class="first">Fix PythonTracebackLexer to be able to recognize SyntaxError and
+<li><p class="first">Fixed PythonTracebackLexer to be able to recognize SyntaxError and
 KeyboardInterrupt (#360).</p>
 </li>
 <li><p class="first">Provide one formatter class per image format, so that surprises like:</p>
@@ -382,7 +393,7 @@ strings (#371).</p>
 </li>
 <li><p class="first">Unified Diff lexer supports the &quot;udiff&quot; alias now.</p>
 </li>
-<li><p class="first">Fix a few issues in Scala lexer (#367).</p>
+<li><p class="first">Fixed a few issues in Scala lexer (#367).</p>
 </li>
 <li><p class="first">RubyConsoleLexer now supports simple prompt mode (#363).</p>
 </li>
@@ -401,7 +412,7 @@ variables (#370).</p>
 <h3>Version 0.11.1</h3>
 <p>(released Aug 24, 2008)</p>
 <ul class="simple">
-<li>Fix a Jython compatibility issue in pygments.unistring (#358).</li>
+<li>Fixed a Jython compatibility issue in pygments.unistring (#358).</li>
 </ul>
 </div>
 <div class="section" id="version-0-11">
@@ -691,6 +702,6 @@ continuations.</li>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:47.950321
+<!-- generated on: 2010-01-02 22:27:11.743625
      file id: changelog -->
 </html>
\ No newline at end of file
index c9122f0c8a779773d284ae4e005aa87c0a174020..e382e6da0c99dff00779fbd48e2464f707da8708 100644 (file)
@@ -348,6 +348,6 @@ formatter is the terminal encoding (<cite>sys.stdout.encoding</cite>).</li>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:48.296293
+<!-- generated on: 2010-01-02 22:27:12.317732
      file id: cmdline -->
 </html>
\ No newline at end of file
index 281496eda2030c18ca16f6737ee883214d28f543..97ba876f82c368c583e305f87559124aadd8635d 100644 (file)
@@ -277,6 +277,6 @@ decorated function for filtering.</p>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:48.389027
+<!-- generated on: 2010-01-02 22:27:12.447556
      file id: filterdevelopment -->
 </html>
\ No newline at end of file
index 73ce0a3c009728d125fa02667813887d2417d52f..a05e4b04e79387d9fa2c68b4bfb74a4d3cbe9b2a 100644 (file)
@@ -407,6 +407,6 @@ code to your styleguide.</p>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:48.454052
+<!-- generated on: 2010-01-02 22:27:12.534561
      file id: filters -->
 </html>
\ No newline at end of file
index f57644427f63cd289f970ccd7de123f783985887..cc4e9cb775ddd6ea1be2c391362bb470ca25e258 100644 (file)
@@ -369,6 +369,6 @@ is up to the formatter) and has to return a string or <tt class="docutils litera
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:48.603536
+<!-- generated on: 2010-01-02 22:27:12.749801
      file id: formatterdevelopment -->
 </html>
\ No newline at end of file
index 5f324b1dc8114b9aed554fee66cce05d9276a4fe..478ee7915720c4a975e09be88c37d42cb9ac496f 100644 (file)
@@ -903,6 +903,6 @@ no support for common styles.</p>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:48.707382
+<!-- generated on: 2010-01-02 22:27:12.903585
      file id: formatters -->
 </html>
\ No newline at end of file
index 6b8b5f00bef9e9eb29ffc07b8a3f78e4ba72136a..4a19e0cb51a7a670458da34b08ad7e688429f50e 100644 (file)
@@ -256,6 +256,6 @@ look <a class="reference external" href="http://pygments.org/contribute/">here</
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:49.234947
+<!-- generated on: 2010-01-02 22:27:13.756054
      file id: index -->
 </html>
\ No newline at end of file
index 385cc208a3bd1d9bf9d0c45b1d0d4d005d93e3c2..815263c8ece0dd45963f8cbd9e51eb1473e777fb 100644 (file)
@@ -276,6 +276,6 @@ is run, the sources are updated from Subversion. -->
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:49.445590
+<!-- generated on: 2010-01-02 22:27:13.891713
      file id: installation -->
 </html>
\ No newline at end of file
index c3b9c37899770a14237a4507d5ce3a5b3464ecce..903d7616dcdde11007ae3a5ffb110c986492d675 100644 (file)
@@ -250,6 +250,6 @@ colorize code via a simple menu option.  It can be found <a class="reference ext
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:49.747016
+<!-- generated on: 2010-01-02 22:27:14.068980
      file id: integrate -->
 </html>
\ No newline at end of file
index 5b88f24b816bae9bee52a64b2aeeddda3361f734..7602ec349932ffe9530d5412d7c3bfe44b0e1990 100644 (file)
@@ -686,6 +686,6 @@ the <tt class="docutils literal">get_tokens_unprocessed()</tt> method. The follo
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:49.865110
+<!-- generated on: 2010-01-02 22:27:14.208796
      file id: lexerdevelopment -->
 </html>
\ No newline at end of file
index 698333359268aec51ad1df4b14ec0a5a09756eef..70627a14a368b25c9ca9a6412bb5807d43357878 100644 (file)
@@ -3255,6 +3255,6 @@ in the form <tt class="docutils literal">(name, aliases, filetypes, mimetypes)</
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:50.249500
+<!-- generated on: 2010-01-02 22:27:14.909677
      file id: lexers -->
 </html>
\ No newline at end of file
index 7c7a3256e5142303bc20565739665668d03d2126..007e1257a3edcd99cc651efdea1422c258151bf1 100644 (file)
@@ -240,6 +240,6 @@ can set the <tt class="docutils literal">INLINESTYLES</tt> option to True.</p>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:52.109970
+<!-- generated on: 2010-01-02 22:27:19.009047
      file id: moinmoin -->
 </html>
\ No newline at end of file
index f0ec742dc9f09aab612125143770455553184ff8..ed7484b043e39dcc2c77667ea4a12672ba7ba4f7 100644 (file)
@@ -289,6 +289,6 @@ distribution.</p>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:52.152696
+<!-- generated on: 2010-01-02 22:27:19.167617
      file id: plugins -->
 </html>
\ No newline at end of file
index 9d387d539a8e7b186850d61d8fb2172fd79c89e8..64cc0f0585b33bb2d9a98ff4eb7e68d1d84608ca 100644 (file)
@@ -385,6 +385,6 @@ $ pygmentize -S default -f html &gt; style.css
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:52.223464
+<!-- generated on: 2010-01-02 22:27:19.352414
      file id: quickstart -->
 </html>
\ No newline at end of file
index d2522b25353cfe6ef24a19451bab113cb638cbf3..d7edf6b0e38a7cdcb6ac6a717bc0b5a479d8dfb2 100644 (file)
@@ -224,6 +224,6 @@ if the `handlecodeblocks` option is true. -->
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:52.337785
+<!-- generated on: 2010-01-02 22:27:19.532040
      file id: rstdirective -->
 </html>
\ No newline at end of file
index 3fab972891863806f35f949ca0f2fa7f27912819..059f90c209c781cb1f79be9db0610495b01d6263 100644 (file)
@@ -336,6 +336,6 @@ a way to iterate over all styles:</p>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:52.399785
+<!-- generated on: 2010-01-02 22:27:19.589769
      file id: styles -->
 </html>
\ No newline at end of file
index f65b32e9bf6d454dbaf44e0a4557fbe82adc070f..a8c048302071b1a211be3c5e4590bc99928b27e0 100644 (file)
@@ -536,6 +536,6 @@ highlight a programming language but a patch file.</p>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:52.504228
+<!-- generated on: 2010-01-02 22:27:19.766835
      file id: tokens -->
 </html>
\ No newline at end of file
index 37da05b55df472324d7458a0cc04ac64fb81eeb7..0cb8f52a4e8383c14261e3a56c4c5b4fd1ec71a9 100644 (file)
@@ -244,6 +244,6 @@ input and output encodings.</p>
 
   </div>
 </body>
-<!-- generated on: 2010-01-02 15:15:52.740014
+<!-- generated on: 2010-01-02 22:27:20.165454
      file id: unicode -->
 </html>
\ No newline at end of file
index 5a31ccfdeede40853dfb3f7669a513849d8422f8..ff17af4faa544d84907232bc2a4e5dfd231c5714 100644 (file)
@@ -12,7 +12,8 @@
     * a wide range of common languages and markup formats is supported
     * special attention is paid to details, increasing quality by a fair amount
     * support for new languages and formats are added easily
-    * a number of output formats, presently HTML, LaTeX, RTF, SVG and ANSI sequences
+    * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image
+      formats that PIL supports, and ANSI sequences
     * it is usable as a command-line tool and as a library
     * ... and it highlights even Brainfuck!
 
@@ -25,7 +26,7 @@
     :license: BSD, see LICENSE for details.
 """
 
-__version__ = '1.2.1'
+__version__ = '1.2.2'
 __docformat__ = 'restructuredtext'
 
 __all__ = ['lex', 'format', 'highlight']
index a9059b1413bf00e1b8c6bfe656518c7fcce6fbf2..4715b04e52a084b57de48fdcc8704bdc25cf2581 100644 (file)
@@ -101,6 +101,10 @@ STYLE_TEMPLATE = r'''
 \def\%(cp)sZob{\char`\{}
 \def\%(cp)sZcb{\char`\}}
 \def\%(cp)sZca{\char`\^}
+%% for compatibility with earlier versions
+\def\%(cp)sZat{@}
+\def\%(cp)sZlb{[}
+\def\%(cp)sZrb{]}
 \makeatother
 '''
 
index 01daa990676d4f8a5a69d8e8bc6b9916c25146d2..dafed5c96fa6d5470b9a723c2528c6dcec52b412 100644 (file)
@@ -1312,12 +1312,12 @@ class TclLexer(RegexLexer):
         ],
         'string': [
             (r'\[', String.Double, 'string-square'),
-            (r'(\\\\|\\[0-7]+|\\.|[^"])', String.Double),
+            (r'(?s)(\\\\|\\[0-7]+|\\.|[^"\\])', String.Double),
             (r'"', String.Double, '#pop')
         ],
         'string-square': [
             (r'\[', String.Double, 'string-square'),
-            (r'(\\\\|\\[0-7]+|\\.|[^\]])', String.Double),
+            (r'(?s)(\\\\|\\[0-7]+|\\.|\\\n|[^\]\\])', String.Double),
             (r'\]', String.Double, '#pop')
         ],
         'brace': [
index 84ffd2b111890ecd53c0f6928944aa4a56a5e0db..e382a1b35d6b50835b45128d54286a0891e71e49 100644 (file)
@@ -1296,8 +1296,8 @@ class FortranLexer(RegexLexer):
         ],
 
         'strings': [
-            (r'"(\\\\|\\[0-7]+|\\.|[^"])*"', String.Double),
-            (r"'(\\\\|\\[0-7]+|\\.|[^'])*'", String.Single),
+            (r'(?s)"(\\\\|\\[0-7]+|\\.|[^"\\])*"', String.Double),
+            (r"(?s)'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single),
         ],
 
         'nums': [
index 5c035bb93c9b705d03270b82d85cb2c902d69982..8431ba3398b26750ed5d5787c7fed8f683c61a9a 100644 (file)
@@ -245,7 +245,7 @@ class CommonLispLexer(RegexLexer):
             (r'#\d*Y.*$', Comment.Special),
 
             # strings and characters
-            (r'"(\\.|[^"])*"', String),
+            (r'"(\\.|[^"\\])*"', String),
             # quoting
             (r":" + symbol, String.Symbol),
             (r"'" + symbol, String.Symbol),
index d3eac45ceb638411dfcd1806ecfca4064a479dd5..7902435071d525ebc1985f7e0f037909fd6d32c0 100644 (file)
@@ -359,8 +359,8 @@ class BashLexer(RegexLexer):
             (r'&&|\|\|', Operator),
         ],
         'data': [
-            (r'\$?"(\\\\|\\[0-7]+|\\.|[^"])*"', String.Double),
-            (r"\$?'(\\\\|\\[0-7]+|\\.|[^'])*'", String.Single),
+            (r'(?s)\$?"(\\\\|\\[0-7]+|\\.|[^"\\])*"', String.Double),
+            (r"(?s)\$?'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single),
             (r';', Text),
             (r'\s+', Text),
             (r'[^=\s\n\[\]{}()$"\'`\\<]+', Text),
@@ -745,8 +745,8 @@ class TcshLexer(RegexLexer):
             (r'<<\s*(\'?)\\?(\w+)[\w\W]+?\2', String),
         ],
         'data': [
-            (r'"(\\\\|\\[0-7]+|\\.|[^"])*"', String.Double),
-            (r"'(\\\\|\\[0-7]+|\\.|[^'])*'", String.Single),
+            (r'(?s)"(\\\\|\\[0-7]+|\\.|[^"\\])*"', String.Double),
+            (r"(?s)'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single),
             (r'\s+', Text),
             (r'[^=\s\n\[\]{}()$"\'`\\]+', Text),
             (r'\d+(?= |\Z)', Number),
@@ -1164,7 +1164,7 @@ class PovrayLexer(RegexLexer):
         'root': [
             (r'/\*[\w\W]*?\*/', Comment.Multiline),
             (r'//.*\n', Comment.Single),
-            (r'"(?:\\.|[^"])+"', String.Double),
+            (r'(?s)"(?:\\.|[^"\\])+"', String.Double),
             (r'#(debug|default|else|end|error|fclose|fopen|if|ifdef|ifndef|'
              r'include|range|read|render|statistics|switch|undef|version|'
              r'warning|while|write|define|macro|local|declare)',
index 8a35b31423c2af692397f0bed182cd3fb3eacd77..1d7f89fdec621306f03b9a8f5e7ce7500f142327 100644 (file)
@@ -171,8 +171,8 @@ class BaseMakefileLexer(RegexLexer):
             (r'([a-zA-Z0-9_${}.-]+)(\s*)([!?:+]?=)([ \t]*)((?:.*\\\n|.*\n)+)',
              bygroups(Name.Variable, Text, Operator, Text, using(BashLexer))),
             # strings
-            (r'"(\\\\|\\"|[^"])*"', String.Double),
-            (r"'(\\\\|\\'|[^'])*'", String.Single),
+            (r'(?s)"(\\\\|\\.|[^"\\])*"', String.Double),
+            (r"(?s)'(\\\\|\\.|[^'\\])*'", String.Single),
             # targets
             (r'([^\n:]+)(:+)([ \t]*)', bygroups(Name.Function, Operator, Text),
              'block-header'),
index 1242d3c6f45b5e74fff79035261fc2286975278e..6a863b9ebe3e40f4c064f7d4c80baf743f4ad8db 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,8 @@
     * a wide range of common languages and markup formats is supported
     * special attention is paid to details, increasing quality by a fair amount
     * support for new languages and formats are added easily
-    * a number of output formats, presently HTML, LaTeX, RTF, SVG and ANSI sequences
+    * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image \
+      formats that PIL supports and ANSI sequences
     * it is usable as a command-line tool and as a library
     * ... and it highlights even Brainfuck!
 
@@ -46,7 +47,7 @@ except ImportError:
 
 setup(
     name = 'Pygments',
-    version = '1.2.1',
+    version = '1.2.2',
     url = 'http://pygments.org/',
     license = 'BSD License',
     author = 'Georg Brandl',
diff --git a/tests/support.pyc b/tests/support.pyc
new file mode 100644 (file)
index 0000000..8aff198
Binary files /dev/null and b/tests/support.pyc differ
diff --git a/tests/test_basic_api.pyc b/tests/test_basic_api.pyc
new file mode 100644 (file)
index 0000000..7369726
Binary files /dev/null and b/tests/test_basic_api.pyc differ
diff --git a/tests/test_clexer.pyc b/tests/test_clexer.pyc
new file mode 100644 (file)
index 0000000..57e6655
Binary files /dev/null and b/tests/test_clexer.pyc differ
diff --git a/tests/test_cmdline.pyc b/tests/test_cmdline.pyc
new file mode 100644 (file)
index 0000000..e44c808
Binary files /dev/null and b/tests/test_cmdline.pyc differ
diff --git a/tests/test_examplefiles.pyc b/tests/test_examplefiles.pyc
new file mode 100644 (file)
index 0000000..9e7f25c
Binary files /dev/null and b/tests/test_examplefiles.pyc differ
diff --git a/tests/test_html_formatter.pyc b/tests/test_html_formatter.pyc
new file mode 100644 (file)
index 0000000..4776a45
Binary files /dev/null and b/tests/test_html_formatter.pyc differ
diff --git a/tests/test_latex_formatter.pyc b/tests/test_latex_formatter.pyc
new file mode 100644 (file)
index 0000000..de8f73d
Binary files /dev/null and b/tests/test_latex_formatter.pyc differ
diff --git a/tests/test_regexlexer.pyc b/tests/test_regexlexer.pyc
new file mode 100644 (file)
index 0000000..2bcf10d
Binary files /dev/null and b/tests/test_regexlexer.pyc differ
diff --git a/tests/test_token.pyc b/tests/test_token.pyc
new file mode 100644 (file)
index 0000000..30c8d69
Binary files /dev/null and b/tests/test_token.pyc differ
diff --git a/tests/test_using_api.pyc b/tests/test_using_api.pyc
new file mode 100644 (file)
index 0000000..d070c23
Binary files /dev/null and b/tests/test_using_api.pyc differ
diff --git a/tests/test_util.pyc b/tests/test_util.pyc
new file mode 100644 (file)
index 0000000..ea024d1
Binary files /dev/null and b/tests/test_util.pyc differ