<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/pygments/lexers/templates.py, branch argparse</title>
<subtitle>github.com: pygments/pygments.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/'/>
<entry>
<title>Run pyupgrade across codebase to modernize syntax and patterns (#1622)</title>
<updated>2021-01-17T15:44:58+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2021-01-17T15:44:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=debda34e2d4f28d6d369cdafdcba4791702f63fc'/>
<id>debda34e2d4f28d6d369cdafdcba4791702f63fc</id>
<content type='text'>
pyupgrade is a tool to automatically upgrade syntax for newer versions
of the Python language.

The project has been Python 3 only since
35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups:

- Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all
  source files as utf-8 by default.

- Replace IOError/EnvironmentError with OSError. Python 3 unified these
  exceptions. The old names are aliases only.

- Use the Python 3 shorter super() syntax.

- Remove "utf8" argument form encode/decode. In Python 3, this value is
  the default.

- Remove "r" from open() calls. In Python 3, this value is the default.

- Remove u prefix from Unicode strings. In Python 3, all strings are
  Unicode.

- Replace io.open() with builtin open(). In Python 3, these functions
  are functionally equivalent.

Co-authored-by: Matthäus G. Chajdas &lt;Anteru@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pyupgrade is a tool to automatically upgrade syntax for newer versions
of the Python language.

The project has been Python 3 only since
35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups:

- Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all
  source files as utf-8 by default.

- Replace IOError/EnvironmentError with OSError. Python 3 unified these
  exceptions. The old names are aliases only.

- Use the Python 3 shorter super() syntax.

- Remove "utf8" argument form encode/decode. In Python 3, this value is
  the default.

- Remove "r" from open() calls. In Python 3, this value is the default.

- Remove u prefix from Unicode strings. In Python 3, all strings are
  Unicode.

- Replace io.open() with builtin open(). In Python 3, these functions
  are functionally equivalent.

Co-authored-by: Matthäus G. Chajdas &lt;Anteru@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Fix several exponential/cubic complexity regexes found by Ben Caller/Doyensec</title>
<updated>2021-01-11T09:04:50+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2021-01-11T08:46:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=2e7e8c4a7b318f4032493773732754e418279a14'/>
<id>2e7e8c4a7b318f4032493773732754e418279a14</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump copyright year.</title>
<updated>2021-01-03T17:03:23+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2021-01-03T17:03:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=a590ac5ea7c00a41e253834306bfa19e38349c0b'/>
<id>a590ac5ea7c00a41e253834306bfa19e38349c0b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>all: weed out more backtracking string regexes</title>
<updated>2020-12-25T12:21:48+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2020-12-25T12:16:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=681487f82f55fba66f01f9913e4ff103e5b2ef4c'/>
<id>681487f82f55fba66f01f9913e4ff103e5b2ef4c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix inefficient regexes for guessing lexers</title>
<updated>2020-12-19T17:38:27+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2020-12-19T17:35:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=7166c36d31897b0a401bc790c2488b16670aa8a5'/>
<id>7166c36d31897b0a401bc790c2488b16670aa8a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Mason regex.</title>
<updated>2020-11-08T08:17:12+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-11-08T08:17:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=afa9e3be5a05a27ed2c8ac515a10e146a766ad15'/>
<id>afa9e3be5a05a27ed2c8ac515a10e146a766ad15</id>
<content type='text'>
Previously, the tag was cut off.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the tag was cut off.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Mason regex.</title>
<updated>2020-11-08T07:55:25+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-11-08T07:55:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=255442ae96a5f283f05f246a9827beecc9612c26'/>
<id>255442ae96a5f283f05f246a9827beecc9612c26</id>
<content type='text'>
Previously, something like:
&lt;%class&gt;text&lt;/%class&gt; would not get matched correctly. This was due to
the capturing group capturing the wrong part of the tag -- instead of
class, it would capture the part after class before &gt;. With this commit,
the capturing group correctly matches the start/end tag. This commit
also adds a unit test to verify this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, something like:
&lt;%class&gt;text&lt;/%class&gt; would not get matched correctly. This was due to
the capturing group capturing the wrong part of the tag -- instead of
class, it would capture the part after class before &gt;. With this commit,
the capturing group correctly matches the start/end tag. This commit
also adds a unit test to verify this.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix closing tag for unnamed blocks on MasonLexer (#1592)</title>
<updated>2020-11-08T07:40:12+00:00</updated>
<author>
<name>Carlos Henrique Guardão Gandarez</name>
<email>782854+gandarez@users.noreply.github.com</email>
</author>
<published>2020-11-08T07:40:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=f4343b7a71b759752f33aa3c7e31c8f20f9411b5'/>
<id>f4343b7a71b759752f33aa3c7e31c8f20f9411b5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>removed \'{* ... *}\' as a django comment</title>
<updated>2020-10-30T05:35:16+00:00</updated>
<author>
<name>Sean McElwain</name>
<email>semcelwa@gmail.com</email>
</author>
<published>2020-10-30T00:05:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=5534f84ee074d196f8541669f0e63562be5d8cca'/>
<id>5534f84ee074d196f8541669f0e63562be5d8cca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add analyze_text to make make check happy. (#1549)</title>
<updated>2020-09-23T16:14:24+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>Anteru@users.noreply.github.com</email>
</author>
<published>2020-09-23T16:14:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=9fca2a106502333db64de61f96c29cd4927c7d84'/>
<id>9fca2a106502333db64de61f96c29cd4927c7d84</id>
<content type='text'>
* Add analyze_text to make make check happy.

This also fixes a few small bugs:

* Slash uses *.sla as the file ending, not *.sl
* IDL has endelse, not elseelse

* Improve various analyse_text methods.

* Improve various analyse_text methods.

* Make Perl less confident in presence of :=.
* Improve brainfuck check to not parse the whole input.
* Improve Unicon by matching \self, /self
* Fix Ezhil not matching against the input text

* Simplify Modula2::analyse_text.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add analyze_text to make make check happy.

This also fixes a few small bugs:

* Slash uses *.sla as the file ending, not *.sl
* IDL has endelse, not elseelse

* Improve various analyse_text methods.

* Improve various analyse_text methods.

* Make Perl less confident in presence of :=.
* Improve brainfuck check to not parse the whole input.
* Improve Unicon by matching \self, /self
* Fix Ezhil not matching against the input text

* Simplify Modula2::analyse_text.</pre>
</div>
</content>
</entry>
</feed>
