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

fix loaction #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix loaction #4

wants to merge 1 commit into from

Conversation

WangRest
Copy link

@WangRest WangRest commented Dec 9, 2019

If the python code does not end with a empty line, the last syntax element produced by Sk.parse will hold lineno=line_of_code + 1 which makes lineno larger than offsets in funciton locToRange and return a range 0, finally the last syntax element's loaction will be wrong.

@nwinter nwinter requested a review from basicer December 13, 2019 00:21
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

Successfully merging this pull request may close these issues.

1 participant