Hello, I have two problems with the current C tagfile. The bool type seems to be in it, but bool isn't highlighted when using it. The other problem is that pthread types are present, but pthread functions aren't (not part of c99?).
The problem with `bool` is that its not a type, its a macro in `stdbool.h` so its tag is a macro, not a type, so it isn't highlighted.
I don't think the pthreads are part of the C99 standard, its in C11 IIRC, so it sounds like the types crept in by mistake.
I see. Would be cool to find a POSIX tag file somewhere. (tried to make one for pthread.h, but it failed)
Would be cool to find a POSIX tag file somewhere.
Most tags files are [here](https://wiki.geany.org/tags/start) and there is a win32 but no *ix :(
Have a look at the miscellaneous [scripts](https://github.com/geany/geany/tree/master/scripts) some of which generate the standard global tags files. Modifying one of those might be the way to go.
Actually, pthread types are in sys/types.sh. Here's a pthread tag file.
I don't think the pthreads are part of the C99 standard, its in C11 IIRC, so it sounds like the types crept in by mistake.
pthreads aren't in any C ISO standard, but the library is builtin to glibc so probably some of it got into the tags file generated from glibc headers.
The bool type seems to be in it, but bool isn't highlighted when using it.
You can put `bool` into the keywords list in a customized `filetypes.c` file, or do like I do and use C++ filetype for C files.
github-comments@lists.geany.org