Skip to content

Commit

Permalink
do not report mangled identifiers as free identifiers in the lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwparas committed Nov 13, 2024
1 parent c89f53b commit a6f7286
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/steel-language-server/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ impl DiagnosticGenerator for FreeIdentifiersAndUnusedIdentifiers {
return None;
}

if resolved.starts_with("##") && resolved.ends_with(char::is_numeric) {
return None;
}

let start_position = offset_to_position(span.start, &context.rope)?;
let end_position = offset_to_position(span.end, &context.rope)?;

Expand Down

0 comments on commit a6f7286

Please sign in to comment.