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.
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::
- 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).
--------------
(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
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
* 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!
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
* 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!
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
</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
</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
<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>
</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>
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>
</li>
<li><p class="first">Unified Diff lexer supports the "udiff" 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>
<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">
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
* 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!
:license: BSD, see LICENSE for details.
"""
-__version__ = '1.2.1'
+__version__ = '1.2.2'
__docformat__ = 'restructuredtext'
__all__ = ['lex', 'format', 'highlight']
\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
'''
],
'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': [
],
'strings': [
- (r'"(\\\\|\\[0-7]+|\\.|[^"])*"', String.Double),
- (r"'(\\\\|\\[0-7]+|\\.|[^'])*'", String.Single),
+ (r'(?s)"(\\\\|\\[0-7]+|\\.|[^"\\])*"', String.Double),
+ (r"(?s)'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single),
],
'nums': [
(r'#\d*Y.*$', Comment.Special),
# strings and characters
- (r'"(\\.|[^"])*"', String),
+ (r'"(\\.|[^"\\])*"', String),
# quoting
(r":" + symbol, String.Symbol),
(r"'" + symbol, String.Symbol),
(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),
(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),
'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)',
(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'),
* 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!
setup(
name = 'Pygments',
- version = '1.2.1',
+ version = '1.2.2',
url = 'http://pygments.org/',
license = 'BSD License',
author = 'Georg Brandl',