-
Notifications
You must be signed in to change notification settings - Fork 270
Syntax highlighting improvement for INI #622
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #622 +/- ##
=========================================
Coverage 80.53% 80.53%
- Complexity 7865 7879 +14
=========================================
Files 180 180
Lines 30438 30481 +43
Branches 3925 3928 +3
=========================================
+ Hits 24513 24548 +35
- Misses 4256 4265 +9
+ Partials 1669 1668 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/modes/IniTokenMaker.flex
Outdated
Show resolved
Hide resolved
| reset(text, 0, text.count, 0); | ||
| yylex(); | ||
| } catch (IOException e) { | ||
| throw new RuntimeException(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will crash some apps if there is a bug in the highlighting. While RSTA's current behavior of silently returning not text isn't great, I'd rather keep the current behavior consistent across all TokenMakers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the previous issue have been fixed: the semicolon is restored as comment marker and no exception is thrown during unexpected lexical errors.
…nymore an exception during list-making
Referring to #607, the following changes has been made:
[some text]) is no longer recognized as an INI section when placed in a property value contextTokenTypes.LITERAL_STRING_DOUBLE_QUOTE)