summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2009-07-07 10:18:05 +0000
committermichelou <michelou@epfl.ch>2009-07-07 10:18:05 +0000
commitdbe0e2bc384fdf7eac0312859347aa62a4778390 (patch)
tree36e9b3e88aa3c66f390306c082b827b741615116 /src/compiler
parent5754e85ed09df3722c3ca98e0832656ab8699e74 (diff)
downloadscala-dbe0e2bc384fdf7eac0312859347aa62a4778390.tar.gz
scala-dbe0e2bc384fdf7eac0312859347aa62a4778390.tar.bz2
scala-dbe0e2bc384fdf7eac0312859347aa62a4778390.zip
fixed Scala comments, added svn:keywords
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/doc/ModelExtractor.scala8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/ModelExtractor.scala b/src/compiler/scala/tools/nsc/doc/ModelExtractor.scala
index 328f2713af..3e827aa0b1 100644
--- a/src/compiler/scala/tools/nsc/doc/ModelExtractor.scala
+++ b/src/compiler/scala/tools/nsc/doc/ModelExtractor.scala
@@ -50,7 +50,11 @@ trait ModelExtractor {
}
protected def decodeComment(comment0: String): Comment = {
- val comment = comment0 // .substring("/**".length, comment0.length - "*/".length)
+ val comment = { // discard outmost comment delimiters if present
+ val begin = if (comment0 startsWith "/**") 3 else 0
+ val end = comment0.length - (if (comment0 endsWith "*/") 2 else 0)
+ comment0.substring(begin, end)
+ }
val tok = new java.util.StringTokenizer(comment, LINE_SEPARATOR)
val buf = new StringBuilder
type AttrDescr = (String, String, StringBuilder)
@@ -415,7 +419,7 @@ trait ModelExtractor {
import java.util.regex.Pattern
// patterns for standard tags with 1 and 2 arguments
private val pat1 = Pattern.compile(
- "[ \t]*@(author|deprecated|pre|return|see|since|todo|version|ex|note)[ \t]*(.*)")
+ "[ \t]*@(author|deprecated|owner|pre|return|see|since|todo|version|ex|note)[ \t]*(.*)")
private val pat2 = Pattern.compile(
"[ \t]*@(exception|param|throws)[ \t]+(\\p{Graph}*)[ \t]*(.*)")