nvim-treesitter/tests/query/highlights/cpp/test.cpp

20 lines
421 B
C++
Raw Normal View History

2021-11-20 15:09:19 +01:00
#include <iostream>
#include <cstdlib>
2023-12-24 12:52:21 +01:00
// ^ @include
// ^ @string
2021-11-20 15:09:19 +01:00
auto main( int argc, char** argv ) -> int
2023-12-24 12:52:21 +01:00
// ^ @type.builtin
// ^ @parameter
// ^ @type.builtin
// ^ @type.builtin
// ^ @operator
2021-11-20 15:09:19 +01:00
{
std::cout << "Hello world!" << std::endl;
2023-12-24 12:52:21 +01:00
// ^ @punctuation.delimiter
2021-11-20 15:09:19 +01:00
return EXIT_SUCCESS;
2023-12-24 12:52:21 +01:00
// ^ @keyword.return
// ^ @constant
2021-11-20 15:09:19 +01:00
}