@@ -114,7 +114,7 @@ object ScipPrinters {
114114 (o.getRangeList.asScala.toList.map(_.toInt), o.getSymbol)
115115 )
116116 occurrences.foreach { occ =>
117- formatOccurrence(input, out, occ, line, symtab, commentSyntax )
117+ formatOccurrence(input, out, occ, line, symtab)
118118 if ((occ.getSymbolRoles & SymbolRole .Definition_VALUE ) > 0 ) {
119119 syntheticDefinitions
120120 .getOrElse(occ.getSymbol, Nil )
@@ -125,7 +125,6 @@ object ScipPrinters {
125125 occ,
126126 line,
127127 symtab,
128- commentSyntax,
129128 syntheticDefinition = Some (syntheticDefinition)
130129 )
131130 }
@@ -173,7 +172,6 @@ object ScipPrinters {
173172 occ : Occurrence ,
174173 line : String ,
175174 symtab : Map [String , SymbolInformation ],
176- comment : String ,
177175 syntheticDefinition : Option [SymbolInformation ] = None
178176 ): Unit = {
179177 val pos = mopedPosition(input, occ)
@@ -195,8 +193,8 @@ object ScipPrinters {
195193 else
196194 " reference"
197195 val indent =
198- if (pos.startColumn + sourceIndent.length > comment .length)
199- " " * (pos.startColumn + sourceIndent.length - comment .length)
196+ if (pos.startColumn + sourceIndent.length > commentSyntax .length)
197+ " " * (pos.startColumn + sourceIndent.length - commentSyntax .length)
200198 else
201199 " "
202200 val caretCharacter =
@@ -216,7 +214,7 @@ object ScipPrinters {
216214 val _ = ScipSymbol .parseOrThrowExceptionIfInvalid(symbol)
217215
218216 out
219- .append(comment )
217+ .append(commentSyntax )
220218 .append(indent)
221219 .append(carets)
222220 .append(" " )
@@ -231,7 +229,7 @@ object ScipPrinters {
231229 syntheticDefinition.orElse(symtab.get(occ.getSymbol)) match {
232230 case Some (info) if isDefinition =>
233231 val prefix =
234- comment + (" " * indent.length) + (" " * carets.length) + " "
232+ commentSyntax + (" " * indent.length) + (" " * carets.length) + " "
235233 if (! info.getDisplayName.isEmpty) {
236234 out
237235 .append(prefix)
0 commit comments