-
-
Notifications
You must be signed in to change notification settings - Fork 92
feat(main): swift/ruby/log/less/scss highlighting and refactor #922
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
feat(main): swift/ruby/log/less/scss highlighting and refactor #922
Conversation
|
@RohitKushvaha01 By the way, where did you get all the TextMate language configurations from? I just copied them from the VSCode repository; is that correct? |
Make sure to test them to see if they are working properly, because some configurations don't work in the Sora editor.
Most of them are taken from Sora Editor's demo, and some of them are from VSCode and other sources. |
Yes, they are working correctly. |
|
@RohitKushvaha01 Colored icons like in acode would also be cool. |
The icons are in svg format but can be converted to android vector drawable via Android studio |
…ini and properties files and improve git file icons and syntax highlighting
|
I'm finished with this PR. You can merge it now. |
This PR adds syntax highlighting for Swift, Ruby, Less, SCSS, Properties, Ignore and log files and improves the handling of all the file extensions.
Features
gradlew.bat, use info icon forREADME.md, ...)Refactor
FileTypeenum, which stores all data about file extensions, their corresponding TextMate scopes, their icons, and their nameScopeRegistryandFileIconcode and migrate the data to the newFileTypeenumWhy this refactor was needed
Because file extensions were declared multiple times in different places, and some extensions were missing in certain parts of the code, it was confusing and hard to maintain. We needed a universal solution for file info to simplify adding new file types.