diff options
| author | Gregory Anders <greg@gpanders.com> | 2021-07-01 15:16:23 -0600 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-07-18 16:44:40 +0000 |
| commit | 27f5e99cdd1b4e7f6a5cc30016d990ebf81a561c (patch) | |
| tree | 87c8a660a1e924b3c7d19ea4cf82881e9527226a /lua/nvim-treesitter | |
| parent | 21a7f61b068d02223838cdc36b1845ec36f171c6 (diff) | |
c: don't treat uppercase functions as constants
A macro function such as
#define FOO(x) ...
should be highlighted with @function.macro, even though the name is in
all-caps (which would otherwise be treated as a constant). Similarly,
call sites of such functions, e.g.
int y = FOO(x);
should be highlighted with @function instead of @constant.
This is as simple as moving the query definition for macro functions
after the query definition for constants.
Diffstat (limited to 'lua/nvim-treesitter')
0 files changed, 0 insertions, 0 deletions
