c.tmbundle
c.tmbundle copied to clipboard
TextMate support for C
On GitHub.com, C++ code is incorrectly highlighted after a line that contains a `//` comment. Example code demonstrating the problem: ```cpp const byte hello = 1; // This is a...
TextMate auto-indents C and C++ in an unexpected way. To be specific, I would like to get: This (1): ``` switch (x) { case 3: sdrhit; case 4: dfsdkfsd; }...
Consider the following C++ snippets, respectively from an Unreal Engine C++ repo and a Flax Engine C++ repo (another C++ 3D engine): ```cpp // Harrison McGuire // UE4 Version 4.20.2...
See [here](https://github.com/mattgallivan/joon/blob/main/src/bigfloat.h). The member `significand` is highlighted in red, while all other members are white. I have searched for matching keywords that might color it this way, but to no...
Sorry for the cruddy title, I don't really know the root cause so I made a best effort guess. Feel free to edit it. The following valid C++ code completely...
https://en.cppreference.com/w/cpp/language/integer_literal * Allow for `z` for `size_t` with C++23 / C++2b. * Allow for the `u` to be either before or after the `l`, `ll`, or `z`. * Allow for...
Given the following code: ```cpp int main(){ int a, b; fscanf(input, "%d", &b); if(~fscanf(user_output, "%d", &a)) { // ... } } ``` The `~fscanf` part inconsistently displayed itself as purple,...
as seen here: https://github.com/alexfru/SmallerC/blob/master/v0100/include/stdio.h#L104, it's marked red. Also, as a general note, I made a long time ago a test case for syntax highlighters for C, it's available here: https://gist.github.com/kspalaiologos/3fb07555e68ec39e543e89dcc247676c...
C++20 has a few new keywords definitely coming: `co_await`, `co_return`, `co_yield`, `requires`, `consteval`, `constinit`, `concept`, `char8_t`, `import`, `module` See also the [vim syntax file](https://github.com/vim-jp/vim-cpp/commit/0357d5d7ce9225566a8775cdbfd50131b0092e13)
There's a little known feature of GCC (and clang) called [Computed Includes](https://gcc.gnu.org/onlinedocs/cpp/Computed-Includes.html#Computed-Includes) which is basically a way to use a `#define` or `-D` or macro value as the `#include` argument...