File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
robotcode/language_server/robotframework/parts Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ All notable changes to the "robotcode" extension will be documented in this file
88- remove pydantic dependency
99 - closes [ #11 ] ( https://github.com/d-biehl/robotcode/issues/11 )
1010 - big refactoring of LSP and DAP types
11-
11+ - fix overlapping semantic tokens
1212
1313## 0.2.11
1414
Original file line number Diff line number Diff line change @@ -265,26 +265,12 @@ async def generate_sem_tokens(
265265
266266 if token .type in {* RobotToken .ALLOW_VARIABLES , RobotToken .KEYWORD }:
267267
268- last_sub_token = token
269-
270268 for sub_token in tokenize_variables (
271269 token , ignore_errors = True , identifiers = "$" if token .type == RobotToken .KEYWORD_NAME else "$@&%"
272270 ):
273- last_sub_token = sub_token
274271 async for e in self .generate_sem_sub_tokens (sub_token , node ):
275272 yield e
276273
277- if last_sub_token == token :
278- async for e in self .generate_sem_sub_tokens (last_sub_token , node ):
279- yield e
280- elif last_sub_token is not None and last_sub_token .end_col_offset < token .end_col_offset :
281- async for e in self .generate_sem_sub_tokens (
282- token ,
283- node ,
284- last_sub_token .end_col_offset ,
285- token .end_col_offset - last_sub_token .end_col_offset - last_sub_token .col_offset ,
286- ):
287- yield e
288274 elif token .type == RobotToken .KEYWORD :
289275 is_builtin = False
290276 if namespace .initialized :
You can’t perform that action at this time.
0 commit comments