<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/doc/docs, branch 2.12.0</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>Rework URL information in lexers.</title>
<updated>2022-03-20T09:29:30+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2022-03-20T09:29:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=64e8e05307689fe726ce9df2d5907e9c2fb67405'/>
<id>64e8e05307689fe726ce9df2d5907e9c2fb67405</id>
<content type='text'>
This commit adds a new url field to a lexer, which can be used to link
to the language website, instead of relying on having the link in either
languages.rst or the docstring of the lexer. Additionally, it changes the
languages.rst file to auto-generate the list of lexers from the actual
source code, using the provided URL.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit adds a new url field to a lexer, which can be used to link
to the language website, instead of relying on having the link in either
languages.rst or the docstring of the lexer. Additionally, it changes the
languages.rst file to auto-generate the list of lexers from the actual
source code, using the provided URL.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add notes to Contributing.md about common mistakes in lexers (#2075)</title>
<updated>2022-03-02T05:41:47+00:00</updated>
<author>
<name>Jean Abou-Samra</name>
<email>jean@abou-samra.fr</email>
</author>
<published>2022-03-02T05:41:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=4752b7d9af7d47ffc993edb48ebe222bfba919b9'/>
<id>4752b7d9af7d47ffc993edb48ebe222bfba919b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos (#2030)</title>
<updated>2022-01-18T20:00:07+00:00</updated>
<author>
<name>Kian-Meng Ang</name>
<email>kianmeng.ang@gmail.com</email>
</author>
<published>2022-01-18T20:00:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=2a0cecbb5037d04f1ecbf5f2336ef26813e2967c'/>
<id>2a0cecbb5037d04f1ecbf5f2336ef26813e2967c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a tooltips option to HtmlFormatter. (#1822)</title>
<updated>2021-12-28T17:12:45+00:00</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2021-12-28T17:12:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=34bf90dcfc8fc32fca8b84e4c56b2805fc0dd82f'/>
<id>34bf90dcfc8fc32fca8b84e4c56b2805fc0dd82f</id>
<content type='text'>
* Add a tooltips option to HtmlFormmater.

* Rename option tooltips to debug_token_types.

* Use explicit if block.

* Fix check.

* Document how to use the new debug_token_types option for the HTML formatter.

* Remove output redirection from example call.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add a tooltips option to HtmlFormmater.

* Rename option tooltips to debug_token_types.

* Use explicit if block.

* Fix check.

* Document how to use the new debug_token_types option for the HTML formatter.

* Remove output redirection from example call.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo, update CHANGES.</title>
<updated>2021-12-06T16:40:28+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2021-12-06T16:40:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=8d3c775500b01cb8a6bc1700637bc18588bf29db'/>
<id>8d3c775500b01cb8a6bc1700637bc18588bf29db</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Clarifying some documentation (#1928)</title>
<updated>2021-12-06T16:38:43+00:00</updated>
<author>
<name>Arthur Milchior</name>
<email>arthur@milchior.fr</email>
</author>
<published>2021-12-06T16:38: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=73b77d5258dfd034b6daa8b6e9c49cb1ab072782'/>
<id>73b77d5258dfd034b6daa8b6e9c49cb1ab072782</id>
<content type='text'>
* NF: adding an example of use of simple filter

@simplefilter is great, but also not very intuitive. Indeeds, the syntax seems
to indicate that you define a function with four arguments while in reality you
define a class whose constructor takes arbitrary keyword arguments. I believe in
this case an example to show how to instantiate this filter is really necessary.

Regarding simplefilter, I also believe that it could be improved in two simple
ways:
* accepting any method which takes lexer and stream as a filter. That would be
  sufficient as long as there is no option
* the @simplefilter decorator could deal with `self` so that the user do not
  have to add it themselves. Probably not worth doing it no, as it would break
  compatibility with current version, but would be even simpler to use

* NF: clarifying get_..._options

get_bool_opt's documentation seems to indicate that the key is interpreted as a
Boolean. While a quick look at the code shows clearly that the value associated
to the key is what is interpreted as a Boolean. I hope I made the code clearer
to any people who know python by indicating that it is essentially `.get` but
with extra features

* NF: clarifying Filter

`filter` has already a specific behavior in general python, or for any people
used to functional programing (and even if some dom processor). So indicating
that a filter is not something that remove some tokens seems really useful to
try to explain what is going on.

* NF: adding details regarding states in lexer

I found the state explanation confusing. I do know what a state machine
is. However, reading the code, I first thought that there were two distinct
variables:
* the current state
* the stack

that are somehow related but distinct. Explaining that the current state is the
top of the stack was lacking in my opinion. That also help explain #push. In
particular that if you define in state "s" an operation whose new state is
"#push", the behavior can be quite different than if the new state was "s".</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* NF: adding an example of use of simple filter

@simplefilter is great, but also not very intuitive. Indeeds, the syntax seems
to indicate that you define a function with four arguments while in reality you
define a class whose constructor takes arbitrary keyword arguments. I believe in
this case an example to show how to instantiate this filter is really necessary.

Regarding simplefilter, I also believe that it could be improved in two simple
ways:
* accepting any method which takes lexer and stream as a filter. That would be
  sufficient as long as there is no option
* the @simplefilter decorator could deal with `self` so that the user do not
  have to add it themselves. Probably not worth doing it no, as it would break
  compatibility with current version, but would be even simpler to use

* NF: clarifying get_..._options

get_bool_opt's documentation seems to indicate that the key is interpreted as a
Boolean. While a quick look at the code shows clearly that the value associated
to the key is what is interpreted as a Boolean. I hope I made the code clearer
to any people who know python by indicating that it is essentially `.get` but
with extra features

* NF: clarifying Filter

`filter` has already a specific behavior in general python, or for any people
used to functional programing (and even if some dom processor). So indicating
that a filter is not something that remove some tokens seems really useful to
try to explain what is going on.

* NF: adding details regarding states in lexer

I found the state explanation confusing. I do know what a state machine
is. However, reading the code, I first thought that there were two distinct
variables:
* the current state
* the stack

that are somehow related but distinct. Explaining that the current state is the
top of the stack was lacking in my opinion. That also help explain #push. In
particular that if you define in state "s" an operation whose new state is
"#push", the behavior can be quite different than if the new state was "s".</pre>
</div>
</content>
</entry>
<entry>
<title>Fix broken link in documentation</title>
<updated>2021-11-04T08:56:40+00:00</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-11-04T07:03:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=0a8b42e9c4cf47572fe1590e97395ed9a0973edc'/>
<id>0a8b42e9c4cf47572fe1590e97395ed9a0973edc</id>
<content type='text'>
Co-authored-by: Georg Brandl &lt;georg@python.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Georg Brandl &lt;georg@python.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add styles gallery to website (#1943)</title>
<updated>2021-11-04T06:55:35+00:00</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2021-11-04T06:55: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=5a987b8af8dcbddcbd5cade37adebed5b5dd99f1'/>
<id>5a987b8af8dcbddcbd5cade37adebed5b5dd99f1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add documentation for missing CLI options (#1900)</title>
<updated>2021-10-02T10:26:24+00:00</updated>
<author>
<name>amitkummer</name>
<email>49096391+amitkummer@users.noreply.github.com</email>
</author>
<published>2021-10-02T10:26: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=b10a543183598f80ad5928a45c412ecda68e9b8e'/>
<id>b10a543183598f80ad5928a45c412ecda68e9b8e</id>
<content type='text'>
Add documentation for the -N, -g, -s and --json command line options.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add documentation for the -N, -g, -s and --json command line options.</pre>
</div>
</content>
</entry>
<entry>
<title>Support error locations in Python tracebacks (#1852)</title>
<updated>2021-07-06T20:20:03+00:00</updated>
<author>
<name>Jean-Abou-Samra</name>
<email>37271310+Jean-Abou-Samra@users.noreply.github.com</email>
</author>
<published>2021-07-06T20:20:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=2cb532d83dbcd022af413a299679e3018af8b98a'/>
<id>2cb532d83dbcd022af413a299679e3018af8b98a</id>
<content type='text'>
Support both single carets for syntax errors (Python 2 and 3)
and fine-grained error locations with several carets (Python 3.11+).
Previously, the carets were highlighted as operators.  This uses
a new token, Token.Punctuation.Marker.  For now, no style supports
it specifically.  In the future, styles might start differentiating
it from Token.Punctuation.

[Closes #1850.]</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Support both single carets for syntax errors (Python 2 and 3)
and fine-grained error locations with several carets (Python 3.11+).
Previously, the carets were highlighted as operators.  This uses
a new token, Token.Punctuation.Marker.  For now, no style supports
it specifically.  In the future, styles might start differentiating
it from Token.Punctuation.

[Closes #1850.]</pre>
</div>
</content>
</entry>
</feed>
