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

Make fields and functions in PdeKeywords protected #2383

Closed
marcogillies opened this issue Mar 3, 2014 · 4 comments
Closed

Make fields and functions in PdeKeywords protected #2383

marcogillies opened this issue Mar 3, 2014 · 4 comments

Comments

@marcogillies
Copy link

The PDEKeywords class in the Processing app, handles syntax highlighting. This would seem a prime candidate for subclassing in different modes. As different languages have different syntax rules, then there should be different code for handling them (I am currently working on the Python mode).

However, it isn't really set up for subclassing as important members and functions (lastOffset, lastKeyword, doKeyword) are declared private. Would it be possible to make these protected?

@benfry
Copy link
Contributor

benfry commented May 11, 2014

@jdf managed to get through this with his version of Python Mode; is there anything we're still missing here or can this be closed?

@jdf
Copy link
Contributor

jdf commented May 11, 2014

I forked an old copy of the original open source project that the syntax highlighting editor in PDE is built from in order to execute the Python mode editor.

@benfry benfry changed the title PDEKeywords is inheritance unfriendly Make fields and functions in PdeKeywords protected Aug 13, 2015
@benfry
Copy link
Contributor

benfry commented Aug 13, 2015

Looked at this now and went back and forth several times... The keyword coloring is really fragile (and buggy), and those interfaces stink, so I'd left them hidden so that we're not supporting them in perpetuity or setting up an expectation of them working in future releases.

Then again, if we change anything, it'll be getting rid of the entire 'syntax' package, so we may as well make those available as-is.

So... fixed for 3.0 beta 4.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants