From 53ba38327e0cda30be8fa8a3ab663eea8e358a6c Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 20 Nov 2021 15:09:19 +0100 Subject: Add highlight tests --- tests/query/highlights/cpp/test.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/query/highlights/cpp/test.cpp (limited to 'tests/query/highlights/cpp') 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 +#include +// ^ 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 +} -- cgit v1.2.3-70-g09d2