I found the mapping “tokens => tags” in this file this file, I could solve the function definition issue, however I don’t see a entry for the self keyword. Happy to open a PR if it is missing.
Edit: other issue I just found, the *
operator is considered as a keyword.