aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-09-08 21:09:51 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-08 22:03:57 +0200
commit39d5b97bc543227861f52eec276d1e9a62b1d8d6 (patch)
treeafba95db735ae6b9ac0bfab2467d7b1cbd86fb0b /queries/cpp
parentC/C++ locals: Deduplicate C++ locals contained in C (diff)
downloadnvim-treesitter-39d5b97bc543227861f52eec276d1e9a62b1d8d6.tar
nvim-treesitter-39d5b97bc543227861f52eec276d1e9a62b1d8d6.tar.gz
nvim-treesitter-39d5b97bc543227861f52eec276d1e9a62b1d8d6.tar.bz2
nvim-treesitter-39d5b97bc543227861f52eec276d1e9a62b1d8d6.tar.lz
nvim-treesitter-39d5b97bc543227861f52eec276d1e9a62b1d8d6.tar.xz
nvim-treesitter-39d5b97bc543227861f52eec276d1e9a62b1d8d6.tar.zst
nvim-treesitter-39d5b97bc543227861f52eec276d1e9a62b1d8d6.zip
feat(C++ highlights): highlight operator_name as function
Diffstat (limited to 'queries/cpp')
-rw-r--r--queries/cpp/highlights.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm
index a81efa89d..38bb7f2fd 100644
--- a/queries/cpp/highlights.scm
+++ b/queries/cpp/highlights.scm
@@ -48,6 +48,8 @@
name: (identifier) @constructor))
(#match? @constructor "^[A-Z]"))
+(operator_name) @function
+
(call_expression
function: (scoped_identifier
name: (identifier) @function))