diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2022-01-17 19:42:07 -0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-18 09:01:16 +0100 |
commit | 89592601b6632ff6e9cd2fc6362bb2afdf40cefc (patch) | |
tree | d1ccc2d47c4602c191d3651db9c34e819f2fcda7 /Userland/DevTools/HackStudio/CodeDocument.cpp | |
parent | 974e36e7a9f4f558933ba525c7e29c60a9583c25 (diff) | |
download | serenity-89592601b6632ff6e9cd2fc6362bb2afdf40cefc.zip |
HackStudio: Hookup git commit message detection and highlighting
Diffstat (limited to 'Userland/DevTools/HackStudio/CodeDocument.cpp')
-rw-r--r-- | Userland/DevTools/HackStudio/CodeDocument.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/DevTools/HackStudio/CodeDocument.cpp b/Userland/DevTools/HackStudio/CodeDocument.cpp index 997498fc2a..c0f747ebf2 100644 --- a/Userland/DevTools/HackStudio/CodeDocument.cpp +++ b/Userland/DevTools/HackStudio/CodeDocument.cpp @@ -22,8 +22,9 @@ CodeDocument::CodeDocument(const String& file_path, Client* client) : TextDocument(client) , m_file_path(file_path) { - m_language = language_from_file_extension(LexicalPath::extension(file_path)); - m_language_name = language_name_from_file_extension(LexicalPath::extension(file_path)); + auto lexical_path = LexicalPath(file_path); + m_language = language_from_file(lexical_path); + m_language_name = language_name_from_file(lexical_path); } CodeDocument::CodeDocument(Client* client) |