Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GotTo Symbol not working #10

Open
jay1109 opened this issue Apr 11, 2018 · 2 comments
Open

GotTo Symbol not working #10

jay1109 opened this issue Apr 11, 2018 · 2 comments

Comments

@jay1109
Copy link

jay1109 commented Apr 11, 2018

if a function is not defined as stock/native/public the "Go to Definition" is not working.
It looks like the first character of the symbol is missing, if there is no stock/native/public in front of the function name.
(I verified that with the "Code Outline" Extension)

grafik

main.p.txt

@rsKliPPy
Copy link
Owner

Thanks for reporting it, I'll take a look.

@jay1109
Copy link
Author

jay1109 commented Jun 22, 2018

I found a solution for that:
changing the callableRegex fixed the problem

//const callableRegex = /([\w\s]+?)?([A-Za-z_@][\w_@]+\s*:\s*)?([A-Za-z_@][\w_@]+)\s*\((.*?)\)/;
const callableRegex = /\s*(stock|public|native)?\s*([A-Za-z_@][\w_@]+\s*:\s*)?([A-Za-z_@][\w_@]+)\s*\((.*?)\)/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants