diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-20 15:09:19 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-24 17:29:55 +0100 |
| commit | 53ba38327e0cda30be8fa8a3ab663eea8e358a6c (patch) | |
| tree | f851a8dcac7cee046e9e014985528081001e30dd /tests/query/highlights | |
| parent | ci: Try out windows-2022 (diff) | |
| download | nvim-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')
| -rw-r--r-- | tests/query/highlights/cpp/test.cpp | 17 |
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 +} |
