diff --git a/kclvm/tools/src/LSP/src/semantic_token.rs b/kclvm/tools/src/LSP/src/semantic_token.rs index 0c71fd09b..b87acf16d 100644 --- a/kclvm/tools/src/LSP/src/semantic_token.rs +++ b/kclvm/tools/src/LSP/src/semantic_token.rs @@ -155,7 +155,7 @@ mod tests { (1, 4, 4, 2), // name (2, 0, 1, 0), // n (0, 3, 3, 4), // num - (1, 0, 4, 0), // func + (2, 0, 4, 0), // func (0, 14, 1, 0), // x (1, 4, 1, 0), // x ]; diff --git a/kclvm/tools/src/LSP/src/test_data/sema_token.k b/kclvm/tools/src/LSP/src/test_data/sema_token.k index 8fdecd1d5..1b0e43ca3 100644 --- a/kclvm/tools/src/LSP/src/test_data/sema_token.k +++ b/kclvm/tools/src/LSP/src/test_data/sema_token.k @@ -7,6 +7,7 @@ p5: Persons = Persons { name: "alice" } n: num = 1 + func = lambda x{ x } \ No newline at end of file