aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/cpp
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-11-20 15:09:19 +0100
committerStephan Seitz <stephan.seitz@fau.de>2021-11-24 17:29:55 +0100
commit53ba38327e0cda30be8fa8a3ab663eea8e358a6c (patch)
treef851a8dcac7cee046e9e014985528081001e30dd /tests/query/highlights/cpp
parentci: Try out windows-2022 (diff)
downloadnvim-treesitter-53ba38327e0cda30be8fa8a3ab663eea8e358a6c.tar
nvim-treesitter-53ba38327e0cda30be8fa8a3ab663eea8e358a6c.tar.gz
nvim-treesitter-53ba38327e0cda30be8fa8a3ab663eea8e358a6c.tar.bz2
nvim-treesitter-53ba38327e0cda30be8fa8a3ab663eea8e358a6c.tar.lz
nvim-treesitter-53ba38327e0cda30be8fa8a3ab663eea8e358a6c.tar.xz
nvim-treesitter-53ba38327e0cda30be8fa8a3ab663eea8e358a6c.tar.zst
nvim-treesitter-53ba38327e0cda30be8fa8a3ab663eea8e358a6c.zip
Add highlight tests
Diffstat (limited to 'tests/query/highlights/cpp')
-rw-r--r--tests/query/highlights/cpp/test.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/query/highlights/cpp/test.cpp b/tests/query/highlights/cpp/test.cpp
new file mode 100644
index 000000000..f0c3f62bf
--- /dev/null
+++ b/tests/query/highlights/cpp/test.cpp
@@ -0,0 +1,17 @@
+#include <iostream>
+#include <cstdlib>
+// ^ include
+// ^ string
+
+auto main( int argc, char** argv ) -> int
+ // ^ parameter
+ // ^ type
+ // ^ TSType
+ // ^ operator
+{
+ std::cout << "Hello world!" << std::endl;
+
+ return EXIT_SUCCESS;
+ // ^ keyword.return
+ // ^ constant
+}