Skip to content

Commit 920ac1c

Browse files
committed
correct highlightning of Library namespaces
1 parent fb324e2 commit 920ac1c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

robotcode/language_server/robotframework/parts/semantic_tokens.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,8 @@ async def generate_sem_sub_tokens(
260260
col_offset + g.start(),
261261
g.end() - g.start(),
262262
)
263-
elif (
264-
token.type == RobotToken.KEYWORD
265-
or ROBOT_KEYWORD_INNER
266-
or (token.type == RobotToken.NAME and isinstance(node, Fixture))
263+
elif token.type in [RobotToken.KEYWORD, ROBOT_KEYWORD_INNER] or (
264+
token.type == RobotToken.NAME and isinstance(node, Fixture)
267265
):
268266
if col_offset is None:
269267
col_offset = token.col_offset

0 commit comments

Comments
 (0)