diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-12-16 02:58:50 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-29 13:11:56 +0100 |
| commit | 1d3111ccb16493c2e5f048a396b05b72ad132239 (patch) | |
| tree | fb56a163940cbe59458c7bcb291b32db77730f19 /queries | |
| parent | highlights(cpp): fix function highlighting of Foo::bar::baz() (diff) | |
| download | nvim-treesitter-1d3111ccb16493c2e5f048a396b05b72ad132239.tar nvim-treesitter-1d3111ccb16493c2e5f048a396b05b72ad132239.tar.gz nvim-treesitter-1d3111ccb16493c2e5f048a396b05b72ad132239.tar.bz2 nvim-treesitter-1d3111ccb16493c2e5f048a396b05b72ad132239.tar.lz nvim-treesitter-1d3111ccb16493c2e5f048a396b05b72ad132239.tar.xz nvim-treesitter-1d3111ccb16493c2e5f048a396b05b72ad132239.tar.zst nvim-treesitter-1d3111ccb16493c2e5f048a396b05b72ad132239.zip | |
highlights(c): highlight enum variants as `@constant`
Fixes #2120
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/c/highlights.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/queries/c/highlights.scm b/queries/c/highlights.scm index 6fdc05dc8..019522c3b 100644 --- a/queries/c/highlights.scm +++ b/queries/c/highlights.scm @@ -137,6 +137,8 @@ ((identifier) @constant (#lua-match? @constant "^[A-Z][A-Z0-9_]+$")) +(enumerator + name: (identifier) @constant) ;; Preproc def / undef (preproc_def |
