Skip to content

Commit 56ee04f

Browse files
committed
Allow to link single-char identifiers per Lubos
1 parent e976585 commit 56ee04f

File tree

2 files changed

+19
-24
lines changed

2 files changed

+19
-24
lines changed

src/org/opensolaris/opengrok/analysis/python/PythonXref.lex

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,7 @@ File = [a-zA-Z]{FNameChar}* "." ([Pp][Yy] | [Pp][Mm] | [Cc][Oo][Nn][Ff] |
6262

6363
{Identifier} {
6464
String id = yytext();
65-
// For historical reasons, PythonXref does not link identifiers of length=1.
66-
if (id.length() > 1) {
67-
writeSymbol(id, Consts.kwd, yyline);
68-
} else {
69-
out.write(id);
70-
}
65+
writeSymbol(id, Consts.kwd, yyline);
7166
}
7267

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

0 commit comments

Comments
 (0)