danielscherzer / GLSL

VSIX Project that provides GLSL language integration.
257 stars 28 forks source link

custom colors for user key functions #62

Closed barnes14 closed 4 years ago

barnes14 commented 4 years ago

Hi Some time ago, you added by my request custom colors for user key words. It's nice feature. You can add a similar thing for custom functions (so that the user's functions and his words have different colors.) For example, 'texture2DRect' is a user function, but 'location' is a word. But they are marked in one color, this is not a strong problem, but if you add several blocks of custom colors this would be great

danielscherzer commented 4 years ago

If I understand correctly: the extension should parse the glsl code for function definitions and color them with a distinct user defined color. Is that the behavior that you want?

barnes14 commented 4 years ago

No, I’m talking about two user lists, each of which has its own color highlight. I also tried adding the source code to my function names and words, but that didn't work. I added new glsl names in glslFunctions.txt and glslKeywords.txt.

danielscherzer commented 4 years ago

Changing glslFunctions.txt and glslKeywords.txt: You would have to recompile and install this changed version of the extension, but I can add a second user list with a distinct user defined color.

barnes14 commented 4 years ago

Ok.

danielscherzer commented 4 years ago

Does it now work as expected?

barnes14 commented 4 years ago

yea)