summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-10-03 17:25:05 +0000
committermichelou <michelou@epfl.ch>2006-10-03 17:25:05 +0000
commit59b5c7d56828f631fe16e59a1f73d7aedf60713e (patch)
treee2c19cda8d1836edc71644bfef50dd40f7339666
parent4831a456ff796796db75555d9e52127671877269 (diff)
downloadscala-59b5c7d56828f631fe16e59a1f73d7aedf60713e.tar.gz
scala-59b5c7d56828f631fe16e59a1f73d7aedf60713e.tar.bz2
scala-59b5c7d56828f631fe16e59a1f73d7aedf60713e.zip
added tag 'exception' in DocGenerator.scala
-rw-r--r--src/compiler/scala/tools/nsc/doc/DocGenerator.scala22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala
index a13256f009..a087b10b58 100644
--- a/src/compiler/scala/tools/nsc/doc/DocGenerator.scala
+++ b/src/compiler/scala/tools/nsc/doc/DocGenerator.scala
@@ -653,17 +653,19 @@ abstract class DocGenerator extends Models {
}
//http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#javadoctags
+ //http://java.sun.com/j2se/javadoc/writingdoccomments/
private def tag(name: String): NodeSeq =
<b> {
Text((name match {
- case "author" => "Author"
- case "param" => "Parameters"
- case "return" => "Returns"
- case "see" => "See Also"
- case "since" => "Since"
- case "throws" => "Throws"
- case "todo" => "Todo"
- case "version" => "Version"
+ case "author" => "Author"
+ case "exception" => "Throws"
+ case "param" => "Parameters"
+ case "return" => "Returns"
+ case "see" => "See Also"
+ case "since" => "Since"
+ case "throws" => "Throws"
+ case "todo" => "Todo"
+ case "version" => "Version"
case _ => name
}) + ":")
} </b>
@@ -681,8 +683,8 @@ abstract class DocGenerator extends Models {
type AttrDescr = Triple[String, String, StringBuffer]
val attributes = new ListBuffer[AttrDescr]
var attr: AttrDescr = null
- val pat1 = Pattern.compile("[ \t]*@(author|return|see|since|throws|todo|version)[ \t]+(.*)")
- val pat2 = Pattern.compile("[ \t]*@(param)[ \t]+(\\p{Alnum}*)[ \t]+(.*)")
+ val pat1 = Pattern.compile("[ \t]*@(author|return|see|since|todo|version)[ \t]+(.*)")
+ val pat2 = Pattern.compile("[ \t]*@(exception|param|throws)[ \t]+(\\p{Alnum}*)[ \t]+(.*)")
val tok = new StringTokenizer(comment0, LINE_SEPARATOR)
while (tok.hasMoreTokens) {
val s = tok.nextToken.replaceFirst("\\p{Space}?\\*", "")