1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:48:12 +00:00

HackStudio: Hookup git commit message detection and highlighting

This commit is contained in:
Brian Gianforcaro 2022-01-17 19:42:07 -08:00 committed by Andreas Kling
parent 974e36e7a9
commit 89592601b6
4 changed files with 24 additions and 6 deletions

View file

@ -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)