Skip to content

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