components/prism-cpp.js


Log

Author Commit Date CI Message
Michael Schmidt e2630d89 2021-09-26T11:52:18 ESLint: Added `regexp/sort-alternatives` rule (#3093)
Michael Schmidt 5de8947f 2021-09-01T14:04:46 C++: Fixed generic function false positive (#3043)
Michael Schmidt 79d22182 2021-06-08T13:50:35 FIxed some cases of quadratic worst-case runtime (#2922)
Michael Schmidt b03e7eb0 2021-04-17T22:30:39 ESLint: Added semi rule (#2836)
Michael Schmidt 3df62fd0 2021-04-03T11:30:05 C++: Added support for generic functions and made `::` punctuation (#2814)
Michael Schmidt 88fa72cf 2021-02-26T13:43:27 C++: Added missing keywords and modules (#2763)
Michael Schmidt e644178b 2020-12-28T18:19:11 Added test for polynomial backtracking (#2597)
Michael Schmidt 8e9d161c 2020-06-28T02:00:03 C++: Added support for default comparison operator (#2426)
Michael Schmidt e3fe9040 2020-05-13T11:59:18 C++: Improved class name detection (#2348)
Julian Smolka 30b4e254 2020-04-29T19:31:30 C++: Fixed `enum class` class names (#2342) The `class` keyword in `enum class` enums was falsely highlighted as the class name.
Simon 462ad57e 2020-03-07T14:32:58 C++: Added C++20 keywords (#2236) This adds support for the ney keywords added in C++20. https://en.cppreference.com/w/cpp/keyword
Michael Schmidt 3de29e72 2019-05-28T14:23:02 C++: Fixed C++ number pattern (#1887)
Michael Schmidt 7eccea5c 2019-01-22T00:49:40 Improve C language (#1697) This PR adds support for [hexadecimal floating-point literals](http://www.cplusplus.com/doc/tutorial/structures/), and [`enum`](https://www.geeksforgeeks.org/enumeration-enum-c/) and [`struct`](https://www.tutorialspoint.com/cprogramming/c_structures.htm) class names.
Michael Schmidt 7af8f8be 2018-08-19T17:09:29 C/C++/Java operator update (#1528) This PR extends and updates the operators of C, C++, and Java. Java and C++ now support the -> operator. (C++ had a bug.) The tests of all languages were updated and the operator pattern for each language is now shorter.
Iván Sanz Carasa 3da238fe 2018-01-28T10:44:38 Add C++ platform-independent types (#1271) * Add platform-independent types * Add tests and min
Andreas Rohner d134a3aa 2017-12-27T12:31:35 Add the C++11 raw string feature to the cpp language
Golmote f61d4876 2017-10-22T14:23:14 C++: Fix operator regexp + regexp simplification + don't use captures if not needed
Golmote 42fbeef5 2015-07-12T09:10:18 C++: Removed delete[] and new[] broken keywords. They'll be highlighted as keyword+punctuation.
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Golmote 9487b5be 2015-01-09T08:11:21 Removed unneeded escapes in RegExps, added some semicolons
Andreas Rohner 550c81e7 2014-07-11T21:21:27 Fix for some serious bugs in C and C++ highlighter &lt; and &gt; don't seem to work as they used to. So this patch replaces them with the corresponding < or > sign like it was done in the clike base language. The pattern for macro statements was seriously flawed. It didn't allow for macros with no argument like #else or #endif. This patch fixes the problem and additionally adds support for multiline macros, which are fairly common. #define FOO(a, b, c) \ do { \ do_stuff_here \ do_more_stuff \ } while (0) Furthermore the path of the #include macro is highlighted as a string. #include <stdio.h> #include "config.h" C also allows for multiline strings in a similar way as multiline macros. "This is a \ multiline \ string"
Andreas Rohner 47ffc24c 2013-03-16T18:39:06 Add C/C++ highlighting support