summaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/cpp/test.cpp
blob: 77e3be698120b7826d31ed3096101dcb20ee4c58 (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
}