aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/cpp/test.cpp
blob: 4a4c6238af3081bd37abdd1cecbdfa7c2a5e9ae5 (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>
//    ^ @keyword.import
//       ^ @string

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