Skip to content

Commit

Permalink
Bug 766464 - python: missing cross-links in sources (option SOURCE_BR…
Browse files Browse the repository at this point in the history
…OWSER = YES)

Linking first element after "self" or "cls"
  • Loading branch information
albert-github committed May 16, 2016
1 parent 2f8c5b9 commit f3aeedf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pycode.l
Expand Up @@ -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]);
Expand Down

0 comments on commit f3aeedf

Please sign in to comment.