Skip to content

Commit 46c9c5a

Browse files
committed
Link single-char JavaScript identifiers per Lubos
1 parent e286327 commit 46c9c5a

File tree

2 files changed

+17
-23
lines changed

2 files changed

+17
-23
lines changed

src/org/opensolaris/opengrok/analysis/javascript/JavaScriptXref.lex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,7 @@ File = [a-zA-Z]{FNameChar}* "." ([Jj][Ss] |
6363

6464
{Identifier} {
6565
String id = yytext();
66-
// N.b. for historical reasons, JavaScriptXref does not link Idneitifers of
67-
// length=1
68-
if (id.length() > 1) {
69-
writeSymbol(id, Consts.kwd, yyline);
70-
} else {
71-
out.write(id);
72-
}
66+
writeSymbol(id, Consts.kwd, yyline);
7367
}
7468

7569
"<" ({File}|{FPath}) ">" {

0 commit comments

Comments
 (0)