components/prism-cpp.js


Log

Author Commit Date CI Message
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