<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git, branch fix/1579</title>
<subtitle>github.com: pygments/pygments.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/'/>
<entry>
<title>Speculative fix for #1579.</title>
<updated>2020-10-22T15:40:30+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-10-22T15:40:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=0d28e2b7a20ec2bf0025115844647c8e5b88e70b'/>
<id>0d28e2b7a20ec2bf0025115844647c8e5b88e70b</id>
<content type='text'>
This removes the top/bottom padding changes, and only keeps left/right
padding, in the hope that this does not break all Sphinx themes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This removes the top/bottom padding changes, and only keeps left/right
padding, in the hope that this does not break all Sphinx themes.
</pre>
</div>
</content>
</entry>
<entry>
<title>TNTLexer: Don't crash on unexpected EOL. (#1570)</title>
<updated>2020-10-14T05:18:39+00:00</updated>
<author>
<name>Ken</name>
<email>kenny2minecraft@gmail.com</email>
</author>
<published>2020-10-14T05:18:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=3e1b79c82d2df318f63f24984d875fd2a3400808'/>
<id>3e1b79c82d2df318f63f24984d875fd2a3400808</id>
<content type='text'>
* TNTLexer: Don't crash on unexpected EOL

Catch IndexErrors in each line and error the rest of the line,
leaving whatever tokens were found.

* Write and pass tests for Typographic Number Theory

pygments/lexers/tnt.py:
* Fix indentation on import
* Fix: TNTLexer.cur is class-level reference if not initialized
  in get_tokens_unprocessed, so init it in __init__ too
* Fix: Fantasy markers are not allowed as components of other formulas,
  so have a dedicated check for them in the body of get_tokens_unprocessed
  which disables the normal formula handling if present
* Clarify TNTLexer.lineno docstring
* Attempt to discard tokens before an IndexError

+tests/test_tnt.py:
* Test every method, and test both +ve and -ve matches for most
* Lexer fixture is test-level to reinitialize cur clean each time
* Don't test actual get_tokens_unprocessed method (besides for fantasy markers)
  because the text testing is left to examplefiles

AUTHORS:
+ Add myself to credits :)

* Add a TNT test just to make sure no crashes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* TNTLexer: Don't crash on unexpected EOL

Catch IndexErrors in each line and error the rest of the line,
leaving whatever tokens were found.

* Write and pass tests for Typographic Number Theory

pygments/lexers/tnt.py:
* Fix indentation on import
* Fix: TNTLexer.cur is class-level reference if not initialized
  in get_tokens_unprocessed, so init it in __init__ too
* Fix: Fantasy markers are not allowed as components of other formulas,
  so have a dedicated check for them in the body of get_tokens_unprocessed
  which disables the normal formula handling if present
* Clarify TNTLexer.lineno docstring
* Attempt to discard tokens before an IndexError

+tests/test_tnt.py:
* Test every method, and test both +ve and -ve matches for most
* Lexer fixture is test-level to reinitialize cur clean each time
* Don't test actual get_tokens_unprocessed method (besides for fantasy markers)
  because the text testing is left to examplefiles

AUTHORS:
+ Add myself to credits :)

* Add a TNT test just to make sure no crashes</pre>
</div>
</content>
</entry>
<entry>
<title>Add Python 3.9 to CI builds.</title>
<updated>2020-10-06T18:41:59+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-10-06T18:41:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=5d6b610fc2e318ffcab953095ad5ff7db8681337'/>
<id>5d6b610fc2e318ffcab953095ad5ff7db8681337</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Python 3.9 as a supported version (#1554)</title>
<updated>2020-10-06T18:40:09+00:00</updated>
<author>
<name>Kurt McKee</name>
<email>contactme@kurtmckee.org</email>
</author>
<published>2020-10-06T18:40:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=3f300cf4a3f0bc2504ae007222d94d2e44279f41'/>
<id>3f300cf4a3f0bc2504ae007222d94d2e44279f41</id>
<content type='text'>
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>
Co-authored-by: Matthäus G. Chajdas &lt;Anteru@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>llvm lexer: add freeze instruction and bfloat type (#1565)</title>
<updated>2020-10-06T10:25:32+00:00</updated>
<author>
<name>Nuno Lopes</name>
<email>nuno.lopes@ist.utl.pt</email>
</author>
<published>2020-10-06T10:25:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=9454d5487fc73a427ca8e64c6a6b6330599a600d'/>
<id>9454d5487fc73a427ca8e64c6a6b6330599a600d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix spelling mistakes - fixes #1562.</title>
<updated>2020-10-04T06:30:09+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-10-04T06:30:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=91728aedb249ecce18b7077f6e94875b8204a7e5'/>
<id>91728aedb249ecce18b7077f6e94875b8204a7e5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing tokens to SPARQL lexer (#1559)</title>
<updated>2020-10-02T16:54:00+00:00</updated>
<author>
<name>Lucas Werkmeister</name>
<email>mail@lucaswerkmeister.de</email>
</author>
<published>2020-10-02T16:54:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=d5f86002609fe1ef04db19aa268fd5b1d95b835d'/>
<id>d5f86002609fe1ef04db19aa268fd5b1d95b835d</id>
<content type='text'>
@belett noticed that VALUES was missing [1]; I found the other ones by
running the following snippet on the SPARQL 1.1 Query Language spec:

    new Set(Array.from(document.querySelectorAll('.grammarTable'))
        .reduce((text, elem) =&gt; text + elem.textContent)
        .match(/'[a-z0-9-_ ]*'/ig))

I don’t know why a few keywords were missing; the docstring linked to
the SPARQL 1.0 Query Language spec (also fixed here), but the lexer
already contained other tokens which were only added in SPARQL 1.1, such
as the aggregate functions (MIN, MAX etc.), which have already been in
Pygments since the initial commit of the current history (6ded9db394).

[1]: https://phabricator.wikimedia.org/T264175</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
@belett noticed that VALUES was missing [1]; I found the other ones by
running the following snippet on the SPARQL 1.1 Query Language spec:

    new Set(Array.from(document.querySelectorAll('.grammarTable'))
        .reduce((text, elem) =&gt; text + elem.textContent)
        .match(/'[a-z0-9-_ ]*'/ig))

I don’t know why a few keywords were missing; the docstring linked to
the SPARQL 1.0 Query Language spec (also fixed here), but the lexer
already contained other tokens which were only added in SPARQL 1.1, such
as the aggregate functions (MIN, MAX etc.), which have already been in
Pygments since the initial commit of the current history (6ded9db394).

[1]: https://phabricator.wikimedia.org/T264175</pre>
</div>
</content>
</entry>
<entry>
<title>Fix LatexEmbeddedLexer (#1517)</title>
<updated>2020-09-30T07:41:40+00:00</updated>
<author>
<name>Eric Wieser</name>
<email>wieser.eric@gmail.com</email>
</author>
<published>2020-09-30T07:41:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=a886f74acae50a3016dcb75ba92784e345fd8905'/>
<id>a886f74acae50a3016dcb75ba92784e345fd8905</id>
<content type='text'>
* Fix LatexEmbeddedLexer to not call the nested tokenizer piecewise

* Reuse the existing do_insertions function

* Add a test for the `LatexEmbeddedLexer`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix LatexEmbeddedLexer to not call the nested tokenizer piecewise

* Reuse the existing do_insertions function

* Add a test for the `LatexEmbeddedLexer`</pre>
</div>
</content>
</entry>
<entry>
<title>Add regexlint to tox so linting can be done during development (#1557)</title>
<updated>2020-09-28T18:24:38+00:00</updated>
<author>
<name>Kurt McKee</name>
<email>contactme@kurtmckee.org</email>
</author>
<published>2020-09-28T18:24:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=cdf1d488769f57eb926a842d81b976dc9aa86f5b'/>
<id>cdf1d488769f57eb926a842d81b976dc9aa86f5b</id>
<content type='text'>
* Add regexlint to tox so linting can be done during development

Tested on Windows.

Closes #1556

* Make regex linting depend on pygments/regexlint@master</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add regexlint to tox so linting can be done during development

Tested on Windows.

Closes #1556

* Make regex linting depend on pygments/regexlint@master</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://git.baserock.org/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>
