Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/robocop/linter/rules/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ def find_not_nested_variable(self, value: str, can_be_escaped: bool) -> None:
elif value[i] == "}":
depth -= 1
if depth == 0:
self.update_used_variables(value[start_pos : i + 1])
self.update_used_variables(value[start_pos + 2 : i])
full_match = start_pos == 0 and i + 1 == len(value)
break

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ${METADATA_VALUE} value
@{TEMPLATE_ARGS} arg1 arg2
${VAR_DOCUMENTATION} Documentation value
${VAR_TAG} Tag value
${3MAR_DESCRIPTION} Lorem ipsum 2


*** Test Cases ****
Expand Down Expand Up @@ -67,3 +68,6 @@ Keyword
Keyword With Arguments
[Arguments] ${arg}=${USED_IN_ARG_DEFAULT} ${arg2}=value with ${USED_IN_ARG_DEFAULT2}
No Operation

Use Variable With Numbers
Log To Console ${3MAR_DESCRIPTION}