aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/cpp/test.cpp
blob: 3f903a55f9947f1510ac098ba2d2e853b77767ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include <cstdlib>
//    ^ @include
//       ^ @string

auto main( int argc, char** argv ) -> int
// ^ @type.builtin
      //       ^ @parameter
      //    ^ @type.builtin
      //    ^ @type.builtin
      //                  ^ @operator
{
    std::cout << "Hello world!" << std::endl;
    //  ^ @punctuation.delimiter
    
    return EXIT_SUCCESS;
    // ^ @keyword.return
    //      ^ @constant
}