Permalink
Browse files

Bug 766464 - python: missing cross-links in sources (option SOURCE_BR…

…OWSER = YES)

Linking first element after "self" or "cls"
  • Loading branch information...
albert-github committed May 16, 2016
1 parent 2f8c5b9 commit f3aeedf7b570c0c06af44a4f8bb66eba6b78c2f2
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/pycode.l
@@ -1007,18 +1007,34 @@ TARGET ({IDENTIFIER}|"("{TARGET_LIST}")"|"["{TARGET_LIST}"]"|{ATTRIBUT
codify(yytext);
endFontClass();
}
"self."{IDENTIFIER}/"."({IDENTIFIER}".")*{IDENTIFIER}"(" {
codify("self.");
findMemberLink(*g_code,&yytext[5]);
}
"self."{IDENTIFIER}/"(" {
codify("self.");
findMemberLink(*g_code,&yytext[5]);
}
"self."{IDENTIFIER}/"."({IDENTIFIER}".")*{IDENTIFIER} {
codify("self.");
findMemberLink(*g_code,&yytext[5]);
}
"self."{IDENTIFIER} {
codify("self.");
findMemberLink(*g_code,&yytext[5]);
}
"cls."{IDENTIFIER}/"."({IDENTIFIER}".")*{IDENTIFIER}"(" {
codify("cls.");
findMemberLink(*g_code,&yytext[4]);
}
"cls."{IDENTIFIER}/"(" {
codify("cls.");
findMemberLink(*g_code,&yytext[4]);
}
"cls."{IDENTIFIER}/"."({IDENTIFIER}".")*{IDENTIFIER} {
codify("cls.");
findMemberLink(*g_code,&yytext[4]);
}
"cls."{IDENTIFIER} {
codify("cls.");
findMemberLink(*g_code,&yytext[4]);

0 comments on commit f3aeedf

Please sign in to comment.