gf icon indicating copy to clipboard operation
gf copied to clipboard

Incorrect syntax highlighting for multi-line macros

Open s4my opened this issue 2 years ago • 0 comments

If we have for example the following snippet of code:

#define BREAKPOINT_COMMAND(function, action) \
void function(void *_index) { \
	int index = (int) (intptr_t) _index; \
	Breakpoint *breakpoint = &breakpoints[index]; \
	char buffer[1024]; \
	StringFormat(buffer, 1024, action " %d", breakpoint->number); \
	DebuggerSend(buffer, true, false); \
}

Only the first line is highlighted with the correct color (i.e, ui.theme.codePreprocessor).

s4my avatar Sep 28 '23 22:09 s4my