Skip to content

Commit

Permalink
Support hovering over macro usages (lsp)
Browse files Browse the repository at this point in the history
  • Loading branch information
7i6ht committed Jan 16, 2025
1 parent d79ee24 commit fb3e545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/viper/silver/ast/pretty/PrettyPrinter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ object FastPrettyPrinter extends FastPrettyPrinterBase with BracketPrettyPrinter
} else {
n.info.getUniqueInfo[AnnotationInfo] match {
case Some(ai) if ai.values.nonEmpty =>
val docs = ai.values.map(v => char('@') <> v._1 <> parens(ssep(v._2.map(v => text(s"\"${v}\"")), text(", ")))).toSeq
val docs = ai.values.filter(v => v._1 != "expandedMacro").map(v => char('@') <> v._1 <> parens(ssep(v._2.map(v => text(s"\"${v}\"")), text(", ")))).toSeq
Some(ssep(docs, if (breakLines) line else space))
case _ => None
}
Expand Down

0 comments on commit fb3e545

Please sign in to comment.