<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/pygments/lexers/c_cpp.py, branch 2.14.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>all: style fixes</title>
<updated>2022-10-27T09:58:29+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2022-10-27T05:19: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=11dac32db5db1166b8d55dc85bc16d2085936c9a'/>
<id>11dac32db5db1166b8d55dc85bc16d2085936c9a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>CFamilyLexer: Fix matching of function parameters (#2210)</title>
<updated>2022-08-18T13:15:40+00:00</updated>
<author>
<name>amitkummer</name>
<email>49096391+amitkummer@users.noreply.github.com</email>
</author>
<published>2022-08-18T13:15: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=adb90dc65f2f211675af5be27d2a7efdf96c6f44'/>
<id>adb90dc65f2f211675af5be27d2a7efdf96c6f44</id>
<content type='text'>
This fixes an issue where in code like this:

```
int foo(float bar) // hello() {}
```

The lexer would match `(float bar) // hello()`
as the parameters of the function `foo`, instead
of just `(float bar)`.

In addition, a similar test case to what was originally
reported in #2208 is added.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes an issue where in code like this:

```
int foo(float bar) // hello() {}
```

The lexer would match `(float bar) // hello()`
as the parameters of the function `foo`, instead
of just `(float bar)`.

In addition, a similar test case to what was originally
reported in #2208 is added.</pre>
</div>
</content>
</entry>
<entry>
<title>CFamilyLexer: refuse quotes between parentheses for function definitions and declarations (#2208)</title>
<updated>2022-08-15T09:45:13+00:00</updated>
<author>
<name>Jean Abou-Samra</name>
<email>jean@abou-samra.fr</email>
</author>
<published>2022-08-15T09:45: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=d6968f804ab817c29f9f0ca408279adf82b006f9'/>
<id>d6968f804ab817c29f9f0ca408279adf82b006f9</id>
<content type='text'>
Something like

id id2("){ ... }");

is no longer wrongly recognized as a "function"

id id2(") {
  ...
}
");

As the difference in the tests shows, this has the unfortunate side
effect that we no longer highlight something like

int f(param="default");

as a function declaration, but it is hard to imagine another way to
fix this (cf. “most vexing parse” problem).

Fixes #2207</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Something like

id id2("){ ... }");

is no longer wrongly recognized as a "function"

id id2(") {
  ...
}
");

As the difference in the tests shows, this has the unfortunate side
effect that we no longer highlight something like

int f(param="default");

as a function declaration, but it is hard to imagine another way to
fix this (cf. “most vexing parse” problem).

Fixes #2207</pre>
</div>
</content>
</entry>
<entry>
<title>Fix comments within function declarations in C (#1891) (#2140)</title>
<updated>2022-05-30T17:48:11+00:00</updated>
<author>
<name>lambda-karlculus</name>
<email>80796236+lambda-karlculus@users.noreply.github.com</email>
</author>
<published>2022-05-30T17:48:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=a9641d731c2f657f377fce7be98f935a33a163df'/>
<id>a9641d731c2f657f377fce7be98f935a33a163df</id>
<content type='text'>
Co-authored-by: Jean Abou Samra &lt;jean@abou-samra.fr&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Jean Abou Samra &lt;jean@abou-samra.fr&gt;</pre>
</div>
</content>
</entry>
<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>CFamily: Lex identifiers after `case` as constants (#2084)</title>
<updated>2022-03-12T14:00:31+00:00</updated>
<author>
<name>amitkummer</name>
<email>49096391+amitkummer@users.noreply.github.com</email>
</author>
<published>2022-03-12T14:00:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=62dd19e9d3e0400fff0aeddabae490797425c87e'/>
<id>62dd19e9d3e0400fff0aeddabae490797425c87e</id>
<content type='text'>
* Lex identifiers after `case` as constants

Add a state for marking identifiers preceded by  a `case` keyword as
constants.

Additionally, refactor the `label` rule to no longer permit a `case`
keyword before a label.

Consequentially, identifiers after a `case` keyword (like `foo` in
`case foo:`) are no longer wrongly lexed as `Name.Label`, but as
`Name.Constant`.

In addition, this fixes #2076, as multiple `case` keywords in one
line are lexed the same.

* Add test for multiple `case` keywords in one line

* Fix existing tests

* Lex `::` as Operator and not Name.Constant

After a `case`, when lexing a namespaced name, like `foo::bar`, lex the
namespace operator `::` as Operator, and not Name.Constant.

* Regenerate tokens</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Lex identifiers after `case` as constants

Add a state for marking identifiers preceded by  a `case` keyword as
constants.

Additionally, refactor the `label` rule to no longer permit a `case`
keyword before a label.

Consequentially, identifiers after a `case` keyword (like `foo` in
`case foo:`) are no longer wrongly lexed as `Name.Label`, but as
`Name.Constant`.

In addition, this fixes #2076, as multiple `case` keywords in one
line are lexed the same.

* Add test for multiple `case` keywords in one line

* Fix existing tests

* Lex `::` as Operator and not Name.Constant

After a `case`, when lexing a namespaced name, like `foo::bar`, lex the
namespace operator `::` as Operator, and not Name.Constant.

* Regenerate tokens</pre>
</div>
</content>
</entry>
<entry>
<title>Happy new year.</title>
<updated>2022-01-25T06:36:28+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2022-01-25T06:36: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=ab4afd821aa41403f7a0b1e714112c40b2ad843b'/>
<id>ab4afd821aa41403f7a0b1e714112c40b2ad843b</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 .tpp as a c++ lexer file extension (#2031)</title>
<updated>2022-01-11T13:14:15+00:00</updated>
<author>
<name>HampusMat</name>
<email>hampus@hampusmat.com</email>
</author>
<published>2022-01-11T13:14:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=53c2beba629d3ddaeb7df2d8f970abb8548751e1'/>
<id>53c2beba629d3ddaeb7df2d8f970abb8548751e1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>CFamily: improve label detection (#2022)</title>
<updated>2022-01-06T11:05:25+00:00</updated>
<author>
<name>amitkummer</name>
<email>49096391+amitkummer@users.noreply.github.com</email>
</author>
<published>2022-01-06T11:05: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=bd6d6826bd19faac9d30016e2fd42a5f7996df15'/>
<id>bd6d6826bd19faac9d30016e2fd42a5f7996df15</id>
<content type='text'>
* Remove unused variable

This variable is unused since the first commit to this file
in the commit history, so it's probably safe to remove it.

* Lex identifier as label only if it's at line start

* Stop matching identifiers that begin with a digit

This is so we don't match numbers as labels with the new labels rule.

* Add label tests

* Fix existing tests</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Remove unused variable

This variable is unused since the first commit to this file
in the commit history, so it's probably safe to remove it.

* Lex identifier as label only if it's at line start

* Stop matching identifiers that begin with a digit

This is so we don't match numbers as labels with the new labels rule.

* Add label tests

* Fix existing tests</pre>
</div>
</content>
</entry>
</feed>
