mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
HackStudio: Hookup git commit message detection and highlighting
This commit is contained in:
parent
974e36e7a9
commit
89592601b6
Notes:
sideshowbarker
2024-07-17 20:41:12 +09:00
Author: https://github.com/bgianfo
Commit: 89592601b6
Pull-request: https://github.com/SerenityOS/serenity/pull/11985
4 changed files with 24 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue