Skip to content

Commit e11ca60

Browse files
committed
fix(robot): strip trailing = from variable names in resource builder
Fixes #546
1 parent 4581cc6 commit e11ca60

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/robot/src/robotcode/robot/diagnostics/library_doc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3168,7 +3168,11 @@ def visit_Variable(self, node: Statement) -> None: # noqa: N802
31683168
return
31693169

31703170
if name_token.value is not None:
3171-
matcher = search_variable(name_token.value, ignore_errors=True, parse_type=True)
3171+
matcher = search_variable(
3172+
name_token.value[:-1].rstrip() if name_token.value.endswith("=") else name_token.value,
3173+
ignore_errors=True,
3174+
parse_type=True,
3175+
)
31723176
if not matcher.is_assign(allow_assign_mark=True) or matcher.name is None:
31733177
return
31743178

0 commit comments

Comments
 (0)