scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
230 stars 21 forks source link

Scaladoc diagram node specs reject valid identifiers #7867

Open scabug opened 10 years ago

scabug commented 10 years ago

Scaladoc defines a NodeSpecRegex used to parse qname globs in various @contentDiagram and @inheritanceDiagram incantations (DiagramDirectiveParser:153). This regex rejects all symbolic/unicode identifiers, as well as identifiers containing numerals.

For example, /** @contentDiagram hideNodes "F2" */ produces the following error:

Could not understand diagram annotation in package basis.math: unmatched entry "hideNodes "F2"".
  This could be because:
   - you forgot to separate entries by commas
   - you used a tag that is not allowed in the current context (like @contentDiagram hideSuperclasses)
   - you did not use one of the allowed tags (see docs.scala-lang.org for scaladoc annotations)
scabug commented 10 years ago

Imported From: https://issues.scala-lang.org/browse/SI-7867?orig=1 Reporter: Chris Sachs (c9r) Affected Versions: 2.10.2