Skip to content

Commit

Permalink
Fix non-exhaustive pattern in LSP (#1896)
Browse files Browse the repository at this point in the history
* fix an LSP exception on top level comment

Found while testing #1895.
  • Loading branch information
xsebek authored Jun 9, 2024
1 parent cbaf54d commit 665949d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swarm-lang/Swarm/Language/LSP/VarUsage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ getUsage ::
BindingSites ->
Syntax ->
Usage
getUsage bindings (Syntax _pos t) = case t of
getUsage bindings (CSyntax _pos t _comments) = case t of
TVar v -> Usage myUsages mempty
where
myUsages = case M.lookup v bindings of
Expand Down

0 comments on commit 665949d

Please sign in to comment.