nakst / gf

A GDB frontend for Linux.
MIT License
1.82k stars 61 forks source link

Incorrect syntax highlighting for preprocessor directives #88

Closed aolo2 closed 1 year ago

aolo2 commented 1 year ago

It appears all code on the same line as a preprocessor directive is highlighted using the same color. Here's a screenshot with examples of both comments and expressions getting incorrectly colored: image

s4my commented 1 year ago

@nakst shouldn't this issue be move to the luigi repo ? a quick investigation tells me that the code responsible for this behavior is in https://github.com/nakst/gf/blob/master/luigi2.h#L2555.

nakst commented 1 year ago

The gf repository contains the working copy of the luigi2.h file. I typically only move changes over the luigi repo once they have been tested for a while in gf.

s4my commented 1 year ago

OK got it 👍🏻

s4my commented 1 year ago

@nakst this issue should be closed (fixed in #128), you're welcome 😎