c.tmbundle
c.tmbundle copied to clipboard
Functions in #define never end
This simple line doesn't work properly:
#define foo bar()
The scope of what follows on the next line is still meta.preprocessor.macro.c
and meta.function.c
.
Five years later... :-)
I personally worked around this by replacing
{ include = '$base'; }
with
{ include = '#block_innards'; }
for name = 'meta.preprocessor.macro.c'
.
Thinking of submitting a PR....
This also fixes broken syntax highlighting in a multiline #define
.
Was:
Now:
@neoxic stop thinking, submit 😏
That's bossy... I'd better, well, submit...😌
Though it doesn't fix this btw:
#ifdef __cplusplus
extern "C" {
#endif
Never mind, it's broken on GitHub too.
Github uses this formatter so it has to be broken.