<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/pygments, branch raw-alias</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>Remove the alias for the RawTokenLexer.</title>
<updated>2020-12-24T16:06:55+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2020-12-24T15:52:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=7f0a0904460b2890ea3e28c92098c1bf6cee8955'/>
<id>7f0a0904460b2890ea3e28c92098c1bf6cee8955</id>
<content type='text'>
RawTokenLexer was broken until 2.7.4, so it seems pretty much unused,
and it led to tracebacks when the "raw" alias was used from some
markup that allows specifying a language alias.

We'll still keep the class for special usage as intended.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RawTokenLexer was broken until 2.7.4, so it seems pretty much unused,
and it led to tracebacks when the "raw" alias was used from some
markup that allows specifying a language alias.

We'll still keep the class for special usage as intended.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix oversight</title>
<updated>2020-12-19T17:43:23+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2020-12-19T17:43: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=6b615e68374a1bce04a3f258a2ce10d4a5e319de'/>
<id>6b615e68374a1bce04a3f258a2ce10d4a5e319de</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>Limit recursion with nesting Ruby heredocs</title>
<updated>2020-12-17T07:03:20+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2020-12-17T07:03: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=a56ed8a1f2eb0db14aad50cb7e4eaaf7f2f0d3b3'/>
<id>a56ed8a1f2eb0db14aad50cb7e4eaaf7f2f0d3b3</id>
<content type='text'>
fixes #1638
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixes #1638
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix backtracking string regexes in JavascriptLexer und TypescriptLexer.</title>
<updated>2020-12-17T06:39:37+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2020-12-17T06:35:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=7958cd6c53215ac2caeb6812aaeab5e8029a43ad'/>
<id>7958cd6c53215ac2caeb6812aaeab5e8029a43ad</id>
<content type='text'>
fixes #1637
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixes #1637
</pre>
</div>
</content>
</entry>
<entry>
<title>fixes #1625: infinite loop in SML lexer</title>
<updated>2020-12-10T07:19:21+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2020-12-10T07:19: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=f91804ff4772e3ab41f46e28d370f57898700333'/>
<id>f91804ff4772e3ab41f46e28d370f57898700333</id>
<content type='text'>
Reason was a lookahead-only pattern which was included in the state
where the lookahead was transitioning to.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reason was a lookahead-only pattern which was included in the state
where the lookahead was transitioning to.
</pre>
</div>
</content>
</entry>
<entry>
<title>Prepare 2.7.3 release.</title>
<updated>2020-12-06T13:05:50+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-12-06T13:05:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=ccd14b98092c7189452cfbe825158c434b90b9cc'/>
<id>ccd14b98092c7189452cfbe825158c434b90b9cc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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>Update mapfiles and CHANGES.</title>
<updated>2020-12-05T16:53:43+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-12-05T16:53:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=97457ade27566c8515f8f5ff7ca17c7723e0eb15'/>
<id>97457ade27566c8515f8f5ff7ca17c7723e0eb15</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
