<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/tests, branch 2.7.3</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>Increase timeout.</title>
<updated>2020-12-05T17:34:44+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-12-05T17:34:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=00d47eae98a45275d29887dc6c4f83a088697c82'/>
<id>00d47eae98a45275d29887dc6c4f83a088697c82</id>
<content type='text'>
This should fix the tests failing on PyPy. Eventually we'll need a more
robust solution for this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should fix the tests failing on PyPy. Eventually we'll need a more
robust solution for this.
</pre>
</div>
</content>
</entry>
<entry>
<title>Unclosed script/style tag handling Fixes #1614 (#1615)</title>
<updated>2020-12-05T16:56:40+00:00</updated>
<author>
<name>Nick Gerner</name>
<email>nick.gerner@gmail.com</email>
</author>
<published>2020-12-05T16:56:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=78665a43ba9c5835bd304f2065c17c3d7270b0cd'/>
<id>78665a43ba9c5835bd304f2065c17c3d7270b0cd</id>
<content type='text'>
Explicitly handle unclosed &lt;script&gt; and &lt;style&gt; tags which previously
would result in O(n^2) work to lex as Error tokens per character up to
the end of the line or end of file (whichever comes first).

Now we try lexing the rest of the line as Javascript/CSS  if there's no
closing script/style tag. We recover on the next line in the root state
if there is a newline, otherwise just keep parsing as Javascript/CSS.

This is similar to how the error handling in lexer.py works except we
get Javascript or CSS tokens instead of Error tokens. And we get to the
end of the line much faster since we don't apply an O(n) regex for every
character in the line.

I added a new test suite for html lexer (there wasn't one except for
coverage in test_examplefiles.py) including a trivial happy-path case
and several cases around &lt;script&gt; and &lt;style&gt; fragments, including
regression coverage that fails on the old logic.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Explicitly handle unclosed &lt;script&gt; and &lt;style&gt; tags which previously
would result in O(n^2) work to lex as Error tokens per character up to
the end of the line or end of file (whichever comes first).

Now we try lexing the rest of the line as Javascript/CSS  if there's no
closing script/style tag. We recover on the next line in the root state
if there is a newline, otherwise just keep parsing as Javascript/CSS.

This is similar to how the error handling in lexer.py works except we
get Javascript or CSS tokens instead of Error tokens. And we get to the
end of the line much faster since we don't apply an O(n) regex for every
character in the line.

I added a new test suite for html lexer (there wasn't one except for
coverage in test_examplefiles.py) including a trivial happy-path case
and several cases around &lt;script&gt; and &lt;style&gt; fragments, including
regression coverage that fails on the old logic.</pre>
</div>
</content>
</entry>
<entry>
<title>testing turtle prefix names where reference starts with number (#1590)</title>
<updated>2020-12-05T16:54:57+00:00</updated>
<author>
<name>elf Pavlik</name>
<email>elf-pavlik@hackers4peace.net</email>
</author>
<published>2020-12-05T16:54:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=95935cccca18f3f778738ba2aa6baa148f49787e'/>
<id>95935cccca18f3f778738ba2aa6baa148f49787e</id>
<content type='text'>
* testing turtle prefix names where reference starts with number

* remove case insensitive flag from Turtle lexer

* use same end-of-string regex as in SPARQL and ShExC

* make example.ttl valid turtle</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* testing turtle prefix names where reference starts with number

* remove case insensitive flag from Turtle lexer

* use same end-of-string regex as in SPARQL and ShExC

* make example.ttl valid turtle</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a catastrophic backtracking bug in JavaLexer (#1594)</title>
<updated>2020-11-09T06:26:21+00:00</updated>
<author>
<name>Kurt McKee</name>
<email>contactme@kurtmckee.org</email>
</author>
<published>2020-11-09T06:26:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=fb40b7113e6c71f29c110cc9c32077a0883b732b'/>
<id>fb40b7113e6c71f29c110cc9c32077a0883b732b</id>
<content type='text'>
* JavaLexer: Demonstrate a catastrophic backtracking bug

* JavaLexer: Fix a catastrophic backtracking bug

Closes #1586</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* JavaLexer: Demonstrate a catastrophic backtracking bug

* JavaLexer: Fix a catastrophic backtracking bug

Closes #1586</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>test_templates: simplify and rename module</title>
<updated>2020-10-30T05:38:13+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2020-10-30T05:38:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=2fe2152377e317fd215776b6d7467bda3e8cda28'/>
<id>2fe2152377e317fd215776b6d7467bda3e8cda28</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added documentation</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:08:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=194eeb4cdd74bbf61aee18c3aad61917d2860673'/>
<id>194eeb4cdd74bbf61aee18c3aad61917d2860673</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added test to track djangojavascript lexer fix</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:04:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=d953c84f54ae8a73a36ffe40fc22e325f99bd15a'/>
<id>d953c84f54ae8a73a36ffe40fc22e325f99bd15a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
