[Github-comments] [geany/geany] Highlight C function names (patch available) (#1231)

linvinus notifications at xxxxx
Tue Sep 20 12:40:47 UTC 2016


parsing function parameters was bad idea, i have removed this part, but now if geany know class, then object initialization will not highlighted.

there is C style (class is unknown), it looks like C prototype
![class_unknown](https://cloud.githubusercontent.com/assets/1043873/18670060/000177d0-7f4f-11e6-83c5-d9226cb3e986.png)

and this is C++ style (class is known)
![class_known](https://cloud.githubusercontent.com/assets/1043873/18670073/11824958-7f4f-11e6-9894-4cc798d6b9ae.png)

there is another idea, if file type GEANY_FILETYPES_CPP or GEANY_FILETYPES_C will be available on Scintilla lexer side , then lexer may change highlighting behavior, for example don't highlight C-style prototypes at all, because they are looks like object initialization, which is used in C++ very often.

for example, don't highlight 'spaceText' part
```C++
std::string spaceText(virtualSpace, ' ');
```
what do you think?


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1231#issuecomment-248289398
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160920/0c4f1c36/attachment.html>


More information about the Github-comments mailing list