Skip to content

Commit ac9a81f

Browse files
committed
Link single-char identifiers per Lubos
1 parent f9ce6f6 commit ac9a81f

File tree

2 files changed

+26
-32
lines changed

2 files changed

+26
-32
lines changed

src/org/opensolaris/opengrok/analysis/rust/RustXref.lex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,7 @@ File = [a-zA-Z]{FNameChar}* "." ([Rr][Ss] | [Cc][Oo][Nn][Ff] | [Tt][Xx][Tt] |
8080
\; { endScope(); writeUnicodeChar(yycharat(0)); }
8181
{Identifier} {
8282
String id = yytext();
83-
// For historical reasons, RustXref does not link identifiers of
84-
// length=1
85-
if (id.length() > 1) {
86-
writeSymbol(id, Consts.kwd, yyline);
87-
} else {
88-
out.write(id);
89-
}
83+
writeSymbol(id, Consts.kwd, yyline);
9084
}
9185
"<" ({File}|{FPath}) ">" {
9286
out.write("&lt;");

0 commit comments

Comments
 (0)