some update.
This commit is contained in:
28
docs/SemanticTokens-example.cpp
Normal file
28
docs/SemanticTokens-example.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
// This is an example file that shows the usage of semantic tokens.
|
||||
// clang-format off
|
||||
|
||||
|
||||
char character = 'a';
|
||||
// ^ ^
|
||||
// keyword character
|
||||
|
||||
int number = 1;
|
||||
// ^ ^
|
||||
// keyword number
|
||||
|
||||
const char* string = "Hello, World!";
|
||||
// ^ ^
|
||||
// keyword string
|
||||
|
||||
#pragma once
|
||||
// ^ ^
|
||||
// directive pragma
|
||||
|
||||
#include <cstdio>
|
||||
// ^ ^
|
||||
// directive header
|
||||
|
||||
#define MAX 100
|
||||
// ^ ^
|
||||
// directive macro
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
- implement basic server and client
|
||||
- implement SemanticTokens
|
||||
- implement CodeCompletion
|
||||
- use `TreeTransform` to simplify `DependentNameResolver`
|
||||
- use `TreeTransform` to simplify `DependentNameResolver`
|
||||
- refactor `clang/lib/SemaComplete.cpp`
|
||||
Reference in New Issue
Block a user