Skip to content

Commit b9a46a4

Browse files
committed
correct collect semantic tokens
1 parent 7fea3c5 commit b9a46a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

robotcode/language_server/robotframework/parts/semantic_tokens.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ def collect(
244244
last_col = 0
245245

246246
for robot_token in itertools.takewhile(
247-
lambda t: range is not None and token_in_range(t, range),
248-
itertools.dropwhile(lambda t: range is None or not token_in_range(t, range), tokens),
247+
lambda t: range is None or token_in_range(t, range),
248+
itertools.dropwhile(lambda t: range is not None and not token_in_range(t, range), tokens),
249249
):
250250
for token in self.generate_sem_tokens(robot_token):
251251
current_line = token.lineno - 1

0 commit comments

Comments
 (0)