@@ -1371,28 +1371,28 @@ fn variable_completions(text: &str, range: Range) -> Vec<CompletionItem> {
13711371
13721372 for line in text.lines() {
13731373 let trimmed = line.trim();
1374− if let Some(rest) = trimmed.strip_prefix("@let ") {
1375− if let Some((name, value)) = rest.trim().split_once(' ') {
1376− let value = value.trim();
1377− if value.starts_with('[') {
1378− // Attribute bundle
1379− items.push(item(
1380− &format!("${}", name),
1381− CompletionItemKind::CONSTANT,
1382− "Attribute bundle",
1383− &format!("${}", name),
1384− range,
1385− ));
1386− } else if !value.starts_with('$') {
1387− // Scalar variable (skip function params like $param)
1388− items.push(item(
1389− &format!("${}", name),
1390− CompletionItemKind::VARIABLE,
1391− &format!("= {}", value),
1392− &format!("${}", name),
1393− range,
1394− ));
1395− }
1374+ if let Some(rest) = trimmed.strip_prefix("@let ")
1375+ && let Some((name, value)) = rest.trim().split_once(' ')
1376+ {
1377+ let value = value.trim();
1378+ if value.starts_with('[') {
1379+ // Attribute bundle
1380+ items.push(item(
1381+ &format!("${}", name),
1382+ CompletionItemKind::CONSTANT,
1383+ "Attribute bundle",
1384+ &format!("${}", name),
1385+ range,
1386+ ));
1387+ } else if !value.starts_with('$') {
1388+ // Scalar variable (skip function params like $param)
1389+ items.push(item(
1390+ &format!("${}", name),
1391+ CompletionItemKind::VARIABLE,
1392+ &format!("= {}", value),
1393+ &format!("${}", name),
1394+ range,
1395+ ));
13961396 }
13971397 }
13981398 }