fix: Code highlights incorrectly disabled on files with extension name '.c++' π#1406
Conversation
|
Thanks for fixing this! You're right though that adding the |
I have made a pr on the package here, could you please approve it? @thecoolwinter |
|
By merging this pr this issue #1404 is solved and can be closed, but first Thanks for helping me through this, I will close this pr |
|
Thanks @Ahattalla, I will close it! @allcontributors add @Ahattalla for code |
|
I've put up a pull request to add @Ahattalla! π |
Description
I have fixed the issue of not highlighting text of files with
c++extensions by changing the url given to the method that returns the CodeLanguage to be withcppextension to correctly recognize it,I think there would be a better solution to add
c++extension to extensions on theinitatCodeLanguageonCodeEditLanguagespackage./// A language structure for `C++` static let cpp: CodeLanguage = .init( id: .cpp, tsName: "cpp", extensions: ["cc", "cpp", "hpp", "h"], parentURL: CodeLanguage.c.queryURL, highlights: ["injections"] )Related Issues
Checklist
Screenshots