mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
Add highlight tests
This commit is contained in:
parent
8016b74cea
commit
53ba38327e
2 changed files with 107 additions and 0 deletions
17
tests/query/highlights/cpp/test.cpp
Normal file
17
tests/query/highlights/cpp/test.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
// ^ 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue