Skip to content

Commit a8f3bbc

Browse files
committed
recognize empty variables like ${}
1 parent f592add commit a8f3bbc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

robotcode/language_server/robotframework/parts/model_helper.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,17 @@ async def iter_token(
376376
return_not_found=return_not_found,
377377
):
378378
yield v
379+
elif base == "" and return_not_found:
380+
yield sub_token, VariableNotFoundDefinition(
381+
sub_token.lineno,
382+
sub_token.col_offset,
383+
sub_token.lineno,
384+
sub_token.end_col_offset,
385+
namespace.source,
386+
sub_token.value,
387+
sub_token,
388+
)
389+
return
379390

380391
if contains_variable(base, "$@&%"):
381392
async for sub_token_or_var in iter_token(

0 commit comments

Comments
 (0)