Skip to content

Commit db771df

Browse files
committed
semantic tokens now highlight inner keywords correctly
1 parent 9f39e42 commit db771df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

robotcode/language_server/robotframework/parts/semantic_tokens.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ async def generate_sem_sub_tokens(
256256
col_offset + g.start(),
257257
g.end() - g.start(),
258258
)
259-
elif token.type == RobotToken.KEYWORD or (token.type == RobotToken.NAME and isinstance(node, Fixture)):
259+
elif (
260+
token.type == RobotToken.KEYWORD
261+
or ROBOT_KEYWORD_INNER
262+
or (token.type == RobotToken.NAME and isinstance(node, Fixture))
263+
):
260264
if col_offset is None:
261265
col_offset = token.col_offset
262266

0 commit comments

Comments
 (0)