summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-01 06:41:46 +0000
committerPaul Phillips <paulp@improving.org>2011-04-01 06:41:46 +0000
commit9781aba3e538ca933dcc15039bf6df8c5ffeee35 (patch)
tree3e95eb31b45f88ef9529de341d709b551f4b81e7 /src/compiler
parent9b3852f26201aee7761637f89979dab2a71294a9 (diff)
downloadscala-9781aba3e538ca933dcc15039bf6df8c5ffeee35.tar.gz
scala-9781aba3e538ca933dcc15039bf6df8c5ffeee35.tar.bz2
scala-9781aba3e538ca933dcc15039bf6df8c5ffeee35.zip
Fix for parsing bug in scaladoc closes #4420, n...
Fix for parsing bug in scaladoc closes #4420, no review.
Diffstat (limited to 'src/compiler')
-rwxr-xr-xsrc/compiler/scala/tools/nsc/ast/DocComments.scala6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/DocComments.scala b/src/compiler/scala/tools/nsc/ast/DocComments.scala
index 13167bf586..51c1fab0f1 100755
--- a/src/compiler/scala/tools/nsc/ast/DocComments.scala
+++ b/src/compiler/scala/tools/nsc/ast/DocComments.scala
@@ -337,12 +337,8 @@ trait DocComments { self: SymbolTable =>
var idx = skipVariable(str, start)
val vble = variableName(str.substring(start, idx))
- if (idx < str.length && isWhitespace(str charAt idx)) idx += 1
- var end = str.lastIndexOf('\n')
- if (end == -1) end = str.length
- defs(sym) += vble -> str.substring(idx, end)
+ defs(sym) += vble -> (str drop idx).trim.replaceAll("""\s+\*+$""", "")
}
- //if (defs(sym).nonEmpty) println("vars of "+sym+" = "+defs(sym)) // !!!
}
}