I cannot test ATM, but a quick scan of the patch suggests some tests:

```C
char f(char c){ return c; }
char c = f(')');
```

For C++ 
[here](https://github.com/pedrib/geany/commit/6b6eaa2e68e8a64f2ebfd3c3f029a5bb4fe2bc8d#diff-e1754cdf37e637f53974542fdd01dae430154f0d8e521f98dcf6b8276d75495bR1085)
 not just `const` but `override` and `final` and `noexcept` and `&&` and 
attributes and `-> return_type` can occur , see 
[here](https://en.cppreference.com/w/cpp/language/function) and 
[here](https://en.cppreference.com/w/cpp/language/member_functions).

Does it highlight constructors as functions even if their names are in the 
wordlist of types Geany supplies to the lexer?

It attempts to skip macro declarations, but are macro "calls" treated as 
function calls?

The rest got too hard to follow, maybe later.

Since (AFAICT) it can all be turned off with properties, the discussion of what 
the defaults for C++ should be might be a :bike: :house: depending on how well 
it does C++, noting that prototypes are already off by default for C++.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1231#issuecomment-1396525643
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/1231/[email protected]>

Reply via email to