Highlights icon indicating copy to clipboard operation
Highlights copied to clipboard

Add support for highlighting functions

Open Nek-12 opened this issue 1 year ago • 3 comments

Nek-12 avatar Apr 15 '24 08:04 Nek-12

Hi @Nek-12.

Please provide an example of this feature, perfectly in PR

tmaxxdd avatar Apr 28 '24 12:04 tmaxxdd

image

Functions can be highlighted with a different color as on the screenshot based on the parentheses after the declaration. Granted, we can't be sure a function will be highlighted properly with some languages that have function syntax sugar, such as kotlin trailing lambda foo { }. However, we could try to highlight what we can.

Nek-12 avatar Apr 29 '24 07:04 Nek-12

I mark this as "nice to have" as many languages do not have "function keyword" and it would require structure analysis

tmaxxdd avatar Aug 11 '24 05:08 tmaxxdd