-
Notifications
You must be signed in to change notification settings - Fork 41
Proposing a more flexible lexing framework #3537
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
Conversation
|
There was a branch ( @mattulbrich Should/Does the highlighting respect the current JML active (conditional) tags? |
|
One thing I could find here: https://git.key-project.org/key/key/-/merge_requests/341 I also found the integrative swing editor with support PSDBG on branch |
The highlighting machinery is the one currently used by the component to display java source code in KeY. |
The editor looks nice from the picture! However, on Friday we were pretty sure that we did not want to integrate an editor into the current swing UI. If an editor ... then as a plugin to whatever VSCode or such with decent feedback into the prover UI. This is really lightweight syntax highlighting for a few bits within KeY. The current solution lacked highlighting for KeY and made the cursor jump annoyingly in the exception recovery dialog. |
If it is inside of the KeY. I see the potential for recognizing errors quickly. For standalone editors, I would say it should be configurable. |
|
After checking a bit more, it turns out that it did already support this before the change. |
key.ui/src/main/java/de/uka/ilkd/key/gui/sourceview/JavaJMLEditorLexer.java
Show resolved
Hide resolved
key.ui/src/main/java/de/uka/ilkd/key/gui/sourceview/JMLEditorLexer.java
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3537 +/- ##
============================================
+ Coverage 38.19% 38.33% +0.14%
- Complexity 17228 17258 +30
============================================
Files 2111 2111
Lines 127642 127632 -10
Branches 21463 21461 -2
============================================
+ Hits 48750 48926 +176
+ Misses 72903 72695 -208
- Partials 5989 6011 +22 ☔ View full report in Codecov by Sentry. |
Intended Change
The syntax highlighting framework in the issue dialog makes the cursor jump around a lot. It does not support KeY files for the moment.
Plan
The code is there can be reused from other places.
Type of pull request
Ensuring quality
The contributions within this pull request are licensed under GPLv2 (only) for inclusion in KeY.