aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-09-12 20:10:43 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-13 12:46:52 +0200
commitda6bc7be201b5bfea2bdff581591618820db917d (patch)
treec3defb4e91eecd81b30627acdbb791ff594153a1
parentfix ocaml highlights (diff)
downloadnvim-treesitter-da6bc7be201b5bfea2bdff581591618820db917d.tar
nvim-treesitter-da6bc7be201b5bfea2bdff581591618820db917d.tar.gz
nvim-treesitter-da6bc7be201b5bfea2bdff581591618820db917d.tar.bz2
nvim-treesitter-da6bc7be201b5bfea2bdff581591618820db917d.tar.lz
nvim-treesitter-da6bc7be201b5bfea2bdff581591618820db917d.tar.xz
nvim-treesitter-da6bc7be201b5bfea2bdff581591618820db917d.tar.zst
nvim-treesitter-da6bc7be201b5bfea2bdff581591618820db917d.zip
fix(cpp highlights): Use `@include` for preproc_include (fix #445)
-rw-r--r--queries/c/highlights.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/c/highlights.scm b/queries/c/highlights.scm
index 31d6f4f8b..6d6d75dcd 100644
--- a/queries/c/highlights.scm
+++ b/queries/c/highlights.scm
@@ -37,10 +37,11 @@
"#else"
"#elif"
"#endif"
- "#include"
(preproc_directive)
] @keyword
+"#include" @include
+
[
"="