Skip to content

Commit 9f995bd

Browse files
committed
chore: Add code completion token
Signed-off-by: Roberto Raggi <[email protected]>
1 parent ccae2c9 commit 9f995bd

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/cxx-frontend/src/TokenKind.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export enum TokenKind {
3333
UTF8_STRING_LITERAL,
3434
WIDE_STRING_LITERAL,
3535
PP_INTERNAL_VARIABLE,
36+
CODE_COMPLETION,
3637
AMP_AMP,
3738
AMP_EQUAL,
3839
AMP,

packages/cxx-gen-ast/src/tokens.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const BASE_TOKENS: string[] = [
3333
"UTF8_STRING_LITERAL",
3434
"WIDE_STRING_LITERAL",
3535
"PP_INTERNAL_VARIABLE",
36+
"CODE_COMPLETION",
3637
];
3738

3839
export const OPERATORS: Array<[kind: string, spelling: string]> = [

src/parser/cxx/token_fwd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class Token;
4343
V(UTF32_STRING_LITERAL, "<utf32_string_literal>") \
4444
V(UTF8_STRING_LITERAL, "<utf8_string_literal>") \
4545
V(WIDE_STRING_LITERAL, "<wide_string_literal>") \
46-
V(PP_INTERNAL_VARIABLE, "<PP_INTERNAL_VARIABLE>")
46+
V(PP_INTERNAL_VARIABLE, "<pp_internal_variable>") \
47+
V(CODE_COMPLETION, "<code_completion>")
4748

4849
#define FOR_EACH_OPERATOR(V) \
4950
V(AMP_AMP, "&&") \

0 commit comments

Comments
 (0)