bobbylight / RSyntaxTextArea

A syntax highlighting, code folding text editor for Java Swing applications.
BSD 3-Clause "New" or "Revised" License
1.12k stars 259 forks source link

Fix #585 FileTypeUtil should identify Rust files #586

Closed bobbylight closed 4 days ago

bobbylight commented 4 days ago

Like it says on the tin. Currently, this returns SyntaxConstants.SYNTAX_STYLE_NONE:

String style = FileTypeUtil.get().guessContentType(new File("test.rs"));
codecov[bot] commented 4 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.35%. Comparing base (de0604f) to head (c8910cd). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #586 +/- ## ============================================ + Coverage 80.34% 80.35% +0.01% - Complexity 7781 7786 +5 ============================================ Files 178 178 Lines 30247 30250 +3 Branches 3911 3911 ============================================ + Hits 24301 24308 +7 + Misses 4273 4272 -1 + Partials 1673 1670 -3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.