We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8f3bbc commit 7605bfaCopy full SHA for 7605bfa
robotcode/language_server/robotframework/diagnostics/analyzer.py
@@ -61,7 +61,11 @@ async def visit(self, node: ast.AST) -> None:
61
self.node_stack.append(node)
62
try:
63
if isinstance(node, HasTokens):
64
- for token in (t for t in node.tokens if contains_variable(t.value, "$@&%")):
+ for token in (
65
+ t
66
+ for t in node.tokens
67
+ if t.type != RobotToken.VARIABLE and t.error is None and contains_variable(t.value, "$@&%")
68
+ ):
69
async for var_token, var in self.iter_variables_from_token(
70
token,
71
self.namespace,
0 commit comments