langtools/src/share/classes/com/sun/tools/javac/parser/DocCommentParser.java
changeset 21894 3535c1819067
parent 17273 d7ec6654aac9
child 22153 f9f06fcca59d
equal deleted inserted replaced
21893:e8997d9f3f6b 21894:3535c1819067
   278     protected DCTree blockTag() {
   278     protected DCTree blockTag() {
   279         int p = bp;
   279         int p = bp;
   280         try {
   280         try {
   281             nextChar();
   281             nextChar();
   282             if (isIdentifierStart(ch)) {
   282             if (isIdentifierStart(ch)) {
   283                 Name name = readIdentifier();
   283                 Name name = readTagName();
   284                 TagParser tp = tagParsers.get(name);
   284                 TagParser tp = tagParsers.get(name);
   285                 if (tp == null) {
   285                 if (tp == null) {
   286                     List<DCTree> content = blockContent();
   286                     List<DCTree> content = blockContent();
   287                     return m.at(p).UnknownBlockTag(name, content);
   287                     return m.at(p).UnknownBlockTag(name, content);
   288                 } else {
   288                 } else {
   327     protected DCTree inlineTag() {
   327     protected DCTree inlineTag() {
   328         int p = bp - 1;
   328         int p = bp - 1;
   329         try {
   329         try {
   330             nextChar();
   330             nextChar();
   331             if (isIdentifierStart(ch)) {
   331             if (isIdentifierStart(ch)) {
   332                 Name name = readIdentifier();
   332                 Name name = readTagName();
   333                 skipWhitespace();
   333                 skipWhitespace();
   334 
   334 
   335                 TagParser tp = tagParsers.get(name);
   335                 TagParser tp = tagParsers.get(name);
   336                 if (tp == null) {
   336                 if (tp == null) {
   337                     DCTree text = inlineText();
   337                     DCTree text = inlineText();
   903         while (bp < buflen && Character.isUnicodeIdentifierPart(ch))
   903         while (bp < buflen && Character.isUnicodeIdentifierPart(ch))
   904             nextChar();
   904             nextChar();
   905         return names.fromChars(buf, start, bp - start);
   905         return names.fromChars(buf, start, bp - start);
   906     }
   906     }
   907 
   907 
       
   908     protected Name readTagName() {
       
   909         int start = bp;
       
   910         nextChar();
       
   911         while (bp < buflen && (Character.isUnicodeIdentifierPart(ch) || ch == '.'))
       
   912             nextChar();
       
   913         return names.fromChars(buf, start, bp - start);
       
   914     }
       
   915 
   908     protected boolean isJavaIdentifierStart(char ch) {
   916     protected boolean isJavaIdentifierStart(char ch) {
   909         return Character.isJavaIdentifierStart(ch);
   917         return Character.isJavaIdentifierStart(ch);
   910     }
   918     }
   911 
   919 
   912     protected Name readJavaIdentifier() {
   920     protected Name readJavaIdentifier() {