summaryrefslogtreecommitdiff
path: root/pygments/lexers/c_cpp.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove all files, redirect to GitHub.HEADmasterMatth?us G. Chajdas2019-11-101-252/+0
|
* Fixup all headers and some more minor problems.2.4.2Georg Brandl2019-05-281-1/+1
|
* Fix more instances of invalid string escapesGeorg Brandl2018-11-281-4/+4
| | | | Also, raise on warnings from Pygments only.
* Copyright update.Georg Brandl2017-01-221-1/+1
|
* Allow open c-style comments.Tim Hatch2016-05-311-2/+4
| | | | Fixes #1114
* Add 'asm' as a C keyword.Matthew Fernandez2016-03-171-5/+6
| | | | | | | | | | | | | | | | | | | | | | | The C standards allow the use of inline assembly with the `asm` keyword (see ?J.5.10 of C99 for example). This commit adds 'asm' as a supported keyword to the base C lexer, `CFamilyLexer`, and removes it from `CppLexer` which inherits from this base. The intended effect is supporting the `asm` keyword for the C lexer, while leaving the behaviour of the C++ lexer identical. Side-effects of adding this keyword are that 'asm' is now also supported as a keyword in the following lexers: - CUDA. Inline PTX assembler is supported in CUDA with this syntax, so this is correct. - eC. It claims to be a superset of C, so this is correct. - nesC. As far as I can tell, nesC supports inline assembly through the same syntax, so this is correct. - Objective-C. I believe inline assembly is supported in Objective-C, but using the keyword `__asm__` instead, so this is somewhat incorrect. However, note that the Objective-C++ lexer currently incorrectly supports `asm` as well. Closes #1219
* Fix most complaints from regexlint.Georg Brandl2016-02-141-1/+2
|
* Parentheses are now lexed as part of the delimiter in C++ raw strings.Miikka Salminen2016-02-081-3/+3
|
* Add tokens for string affixes and heredoc delimiters. Add lexing for them in ↵Miikka Salminen2016-02-061-8/+8
| | | | C/C++, Perl, PHP, Python and Ruby. Update my old style Lovelace accordingly.
* Closes #1103: support C++11 raw strings.Georg Brandl2016-02-021-0/+7
|
* Allow underscores in C++ std header names.Georg Brandl2016-02-021-1/+1
|
* Unbreak C/C++ tests (again).Tim Hatch2015-11-021-2/+2
| | | | | I don't know how this got through my running the local tests earlier, unless there's a Python-version-specific issue here.
* Unbreak NesC after PR#487 merge.Tim Hatch2015-10-311-1/+1
|
* Merged in ProgVal/pygments-main/c-function-keywords (pull request #487)Tim Hatch2015-10-311-16/+24
|\
| * Fixes #1133: Merge malexk/pygments-main (pull request #488).Tim Hatch2015-10-311-15/+20
| |\
| | * Closes #1141: C: remove blanket *_t highlighting, add some Linux specific _t ↵Georg Brandl2015-10-171-14/+19
| | | | | | | | | | | | types
| | * Fixes #1148: Trigger using CLexer off string "#ifndef"Tim Hatch2015-10-161-1/+1
| | |
| * | c_cpp.py edited online with BitbucketMarco A2015-08-051-0/+1
| |/
| * Merged in erikrose/pygments-main (pull request #441)Georg Brandl2015-07-211-1/+3
| |\ | | | | | | | | | #1081: Revert e19e3591780ae26aaa0c2a672771192f71c28b50 to fix a case of pathological slowness.
| | * #1081: Revert e19e3591780ae26aaa0c2a672771192f71c28b50 to fix a case of ↵Erik Rose2015-01-261-1/+3
| | | | | | | | | | | | pathological slowness.
* | | Fix previous commit (again)Valentin Lorentz2015-07-211-1/+1
| | |
* | | Fix previous commitValentin Lorentz2015-07-211-5/+3
| | |
* | | Add support for function keywords in C/C++.Valentin Lorentz2015-07-211-3/+5
|/ /
* | Closes #1094: add try as a C++ keyword.Georg Brandl2015-04-081-1/+1
|/
* Copyright year update.Georg Brandl2015-01-211-1/+1
|
* Closes #1057: adjust lexer analysis functions; remove too broad analysis for ↵Georg Brandl2014-11-091-1/+3
| | | | SystemVerilog and strengthen C.
* Curly brace escaping, round 2.Tim Hatch2014-10-151-1/+1
| | | | | | | These were all pointed out by regexlint but required manual effort to track down (indicator.py was confused by most of them being produced by expressions). Also comment out some iffy comment patterns.
* all lexers: fix unescaped { and } so that the "regex" module can compile our ↵Georg Brandl2014-10-151-2/+2
| | | | regexes
* Remove the c_like subpackage.Georg Brandl2014-09-201-0/+231