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

Python autoindent support and fix to Python Fold Parser #508

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

awindillman
Copy link
Contributor

This PR will close the small enhancement requested in issue #507

@awindillman
Copy link
Contributor Author

awindillman commented May 24, 2023

Note that I did not add or update any tests. I'm not quite familiar enough with RSyntaxTextArea to determine if/where they should be added. I am happy to add tests as may be appropriate.

@awindillman awindillman changed the title Add autoindent support to PythonTokenMaker.java Python autoindent support and fix to Python Fold Parser Jun 23, 2023
@awindillman
Copy link
Contributor Author

This PR will also close the bug noted in issue #512

@bobbylight bobbylight self-requested a review July 9, 2023 19:12
Copy link
Owner

@bobbylight bobbylight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make the changes requested? Then I think it looks great, thanks for the PR!

if (t!=null && t.length()==1) {
ch = t.charAt(0);
}
return ch=='\\';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be made a little simpler with isSingleChar:

t != null && t.isSingleChar('\\')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Will commit with other changes.

@awindillman
Copy link
Contributor Author

Thanks for the review. (Vaguely related: Looking forward to adding code completion for Jython when I get some time.)

@bobbylight bobbylight merged commit 4a08790 into bobbylight:master Jul 28, 2023
5 checks passed
@bobbylight
Copy link
Owner

Thanks for the PR!

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.

2 participants