<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/pygments/lexers/c_cpp.py, branch bug/angular-html</title>
<subtitle>github.com: pygments/pygments.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pygments-git.git/'/>
<entry>
<title>Update copyright year (fixes #1514.)</title>
<updated>2020-08-22T14:08:07+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-08-22T14:08:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=5bd2a84bc1db0120828606c900a14276414fecdc'/>
<id>5bd2a84bc1db0120828606c900a14276414fecdc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>General improvement to the C/C++ lexer (#1350)</title>
<updated>2020-05-22T19:30:36+00:00</updated>
<author>
<name>Hubert Gruniaux</name>
<email>42495291+hgruniaux@users.noreply.github.com</email>
</author>
<published>2020-05-22T19:30:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=fc56ab883a80f6182339d7fbf95e531ff32e4809'/>
<id>fc56ab883a80f6182339d7fbf95e531ff32e4809</id>
<content type='text'>
* General improvement to the C/C++ lexer

* Add missing C11 keywords

Add '_Imaginary', '_Static_assert', '_Atomic' keywords.

* Highlight C11 std atomic types (#906)

Add support for C11 atomic types `atomic_*`.

* Extended character literals prefixes for C/C++

Add support for `u'a'`, `U'a'` (C++11, C11), and `u8'a'` (C++17, C2x).
[Reference](https://en.cppreference.com/w/cpp/language/character_literal).
[Reference](https://en.cppreference.com/w/c/language/character_constant).

* Fix bad floating point highlighting in C lexer

Fix bad highlighting for `5.`, where `.` was not highlighted.

* Fix hex floating literal highlighting in C

Hexadecimal floating point literals needs an exponent (`0x5p8`). Before this commit, event floating-point literals without an exponent were accepted (e.g. `0x5.5`).

* Support '$' in identifiers, C/C++

Some old C/C++ compilers have supported `$` (dollar sign) in identifiers, and some news continue to support this for legacy reasons. That is, some codes may use them, and it is therefore preferable to color them correctly.

* Cleaning and fixing some bugs in C/C++ lexer

- Add '_Pragma' keyword
- Recognize the identifier following 'typename' as Name.Class
- Do not tokenize 'class' or 'struct' following 'enum' as Name.Class, but instead as Keyword (C++ lexer)
- Move some C++ keywords to the generic lexer (`alignas`, `alignof`, etc...)
- Add some C keywords (`noreturn`, `imaginary`, `complex`)
- And others things...

* Fix building errors in C/C++ lexer

* Fix bug in C/C++

Now `class`, `struct`, `enum`, `union`, etc... can be used alone. Previously, the lexer do not recognizes them if they are not followed by an identifier. This regression was introduced in https://github.com/pygments/pygments/pull/1350/commits/013bf6af2777f6ba444e2c8e3a8ca3ad1bb1e674 by me.

* Reuse old states names for C/C++

Some lexers depends on the old states names (e.g. `classname` state) to works. This commit, reintroduce these old names.

* Improve C/C++ lexer documentation

* Correct english errors in C lexer documentation

* Cleaning and Unicode literals for C

* Move Unicode literals from C++ to generic C

* Remove useless 'classname' state in ECLexer

* Revert "Remove useless 'classname' state in ECLexer"

This reverts commit 89a0c138fbcc70883d8035b0585b7e94e49f73cc.

* Revert "Revert "Remove useless 'classname' state in ECLexer""

This reverts commit 2d4734308a813abec6a17ea7fa6eb3a0b6f57939.

* Add support for UCNs in C and C++

* Apply correction from #1162

Solves #1162

* Correctly highlights negatives numbers in C++

* Revert some changes from 8fe8ed6

* Add unicode suffixes to C++ raw string literals

* Solves #1166

* Fix previous regression in C like lexer

* Fix invalid regex in C like lexer

* Fix #1396 and now are identifiers support UCNs in C and C++ lexer

* Update AUTHORS

* Add missing Python raw string prefix

Co-authored-by: Hubert Gruniaux &lt;42495291+HubertGruniaux@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* General improvement to the C/C++ lexer

* Add missing C11 keywords

Add '_Imaginary', '_Static_assert', '_Atomic' keywords.

* Highlight C11 std atomic types (#906)

Add support for C11 atomic types `atomic_*`.

* Extended character literals prefixes for C/C++

Add support for `u'a'`, `U'a'` (C++11, C11), and `u8'a'` (C++17, C2x).
[Reference](https://en.cppreference.com/w/cpp/language/character_literal).
[Reference](https://en.cppreference.com/w/c/language/character_constant).

* Fix bad floating point highlighting in C lexer

Fix bad highlighting for `5.`, where `.` was not highlighted.

* Fix hex floating literal highlighting in C

Hexadecimal floating point literals needs an exponent (`0x5p8`). Before this commit, event floating-point literals without an exponent were accepted (e.g. `0x5.5`).

* Support '$' in identifiers, C/C++

Some old C/C++ compilers have supported `$` (dollar sign) in identifiers, and some news continue to support this for legacy reasons. That is, some codes may use them, and it is therefore preferable to color them correctly.

* Cleaning and fixing some bugs in C/C++ lexer

- Add '_Pragma' keyword
- Recognize the identifier following 'typename' as Name.Class
- Do not tokenize 'class' or 'struct' following 'enum' as Name.Class, but instead as Keyword (C++ lexer)
- Move some C++ keywords to the generic lexer (`alignas`, `alignof`, etc...)
- Add some C keywords (`noreturn`, `imaginary`, `complex`)
- And others things...

* Fix building errors in C/C++ lexer

* Fix bug in C/C++

Now `class`, `struct`, `enum`, `union`, etc... can be used alone. Previously, the lexer do not recognizes them if they are not followed by an identifier. This regression was introduced in https://github.com/pygments/pygments/pull/1350/commits/013bf6af2777f6ba444e2c8e3a8ca3ad1bb1e674 by me.

* Reuse old states names for C/C++

Some lexers depends on the old states names (e.g. `classname` state) to works. This commit, reintroduce these old names.

* Improve C/C++ lexer documentation

* Correct english errors in C lexer documentation

* Cleaning and Unicode literals for C

* Move Unicode literals from C++ to generic C

* Remove useless 'classname' state in ECLexer

* Revert "Remove useless 'classname' state in ECLexer"

This reverts commit 89a0c138fbcc70883d8035b0585b7e94e49f73cc.

* Revert "Revert "Remove useless 'classname' state in ECLexer""

This reverts commit 2d4734308a813abec6a17ea7fa6eb3a0b6f57939.

* Add support for UCNs in C and C++

* Apply correction from #1162

Solves #1162

* Correctly highlights negatives numbers in C++

* Revert some changes from 8fe8ed6

* Add unicode suffixes to C++ raw string literals

* Solves #1166

* Fix previous regression in C like lexer

* Fix invalid regex in C like lexer

* Fix #1396 and now are identifiers support UCNs in C and C++ lexer

* Update AUTHORS

* Add missing Python raw string prefix

Co-authored-by: Hubert Gruniaux &lt;42495291+HubertGruniaux@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Update c_cpp.py to adds support for C++20 keywords</title>
<updated>2020-01-05T15:06:49+00:00</updated>
<author>
<name>Hubert Gruniaux</name>
<email>42495291+HubertGruniaux@users.noreply.github.com</email>
</author>
<published>2020-01-05T15:06:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=58ac0fc97e6401f962e1cf99f553653b3132750f'/>
<id>58ac0fc97e6401f962e1cf99f553653b3132750f</id>
<content type='text'>
The soon C++20 newcomer standard will introduce lots of new keywords like `constinit`, `co_yield` (for courotines), `import` or`module` (for modules, however these are special identifiers instead of real keywords), etc...</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The soon C++20 newcomer standard will introduce lots of new keywords like `constinit`, `co_yield` (for courotines), `import` or`module` (for modules, however these are special identifiers instead of real keywords), etc...</pre>
</div>
</content>
</entry>
<entry>
<title>Update project to use modern Python features and idioms</title>
<updated>2019-11-25T11:12:41+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2019-11-24T20:55:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=1dc6c8e2b473717188632f9a0c28c4342428e684'/>
<id>1dc6c8e2b473717188632f9a0c28c4342428e684</id>
<content type='text'>
Run the pyupgrade tool across the project to use modern language
features.

- Use set literals
- Use dict comprehension
- Remove unnecessary numeric indexes in format string
- Remove unnecessary extra parentheses
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run the pyupgrade tool across the project to use modern language
features.

- Use set literals
- Use dict comprehension
- Remove unnecessary numeric indexes in format string
- Remove unnecessary extra parentheses
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixup all headers and some more minor problems.</title>
<updated>2019-05-28T05:00:40+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2019-05-28T05:00:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=597020d4ce90505dad8b850eadafd20f06bf1dc9'/>
<id>597020d4ce90505dad8b850eadafd20f06bf1dc9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix more instances of invalid string escapes</title>
<updated>2018-11-28T15:42:15+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2018-11-28T15:42:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=0d8d02584edd9aed85be19da2a5e46c121769486'/>
<id>0d8d02584edd9aed85be19da2a5e46c121769486</id>
<content type='text'>
Also, raise on warnings from Pygments only.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, raise on warnings from Pygments only.
</pre>
</div>
</content>
</entry>
<entry>
<title>Copyright update.</title>
<updated>2017-01-22T17:38:11+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2017-01-22T17:38:11+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=00126a1401eefcf0280384d9bf59783e81db41ed'/>
<id>00126a1401eefcf0280384d9bf59783e81db41ed</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for partials and path segments for Handlebars.</title>
<updated>2016-11-04T23:57:38+00:00</updated>
<author>
<name>Christian Hammond</name>
<email>christian@beanbaginc.com</email>
</author>
<published>2016-11-04T23:57:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pygments-git.git/commit/?id=6ded9db39463372e5205a36bea72d6de516ece69'/>
<id>6ded9db39463372e5205a36bea72d6de516ece69</id>
<content type='text'>
This introduces support for some missing features to the Handlebars lexer:
Partials and path segments. Partials mostly appeared to work before, but the
`&gt;` in `{{&gt; ... }}` would appear as a syntax error, as could other
components of the partial. This change introduces support for:

* Standard partials: `{{&gt; partialName}}`
* Partials with parameters: `{{&gt; partialName varname="value"}}`
* Ddynamic partials: `{{&gt; (partialFunc)}}`
* Ddynamic partials with lookups: `{{&gt; (lookup ../path "partialName")}}`
* Partial blocks: `{{&gt; @partial-block}}`
* Inline partials: `{{#*inline}}..{{/inline}}`

It also introduces support for path segments, which can reference content in
the current context or in a parent context. For instance, `this.name`,
`this/name`, `./name`, `../name`, `this/name`, etc. These are all now tracked
as variables.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This introduces support for some missing features to the Handlebars lexer:
Partials and path segments. Partials mostly appeared to work before, but the
`&gt;` in `{{&gt; ... }}` would appear as a syntax error, as could other
components of the partial. This change introduces support for:

* Standard partials: `{{&gt; partialName}}`
* Partials with parameters: `{{&gt; partialName varname="value"}}`
* Ddynamic partials: `{{&gt; (partialFunc)}}`
* Ddynamic partials with lookups: `{{&gt; (lookup ../path "partialName")}}`
* Partial blocks: `{{&gt; @partial-block}}`
* Inline partials: `{{#*inline}}..{{/inline}}`

It also introduces support for path segments, which can reference content in
the current context or in a parent context. For instance, `this.name`,
`this/name`, `./name`, `../name`, `this/name`, etc. These are all now tracked
as variables.
</pre>
</div>
</content>
</entry>
</feed>
