mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibSyntax: Add common_language_extension()
function
The main motivation for this is to prefill an extension for user when saving a new file.
This commit is contained in:
parent
fb61b3d41d
commit
c75bfa9cda
Notes:
sideshowbarker
2024-07-17 09:47:09 +09:00
Author: https://github.com/krkk
Commit: c75bfa9cda
Pull-request: https://github.com/SerenityOS/serenity/pull/16570
Reviewed-by: https://github.com/trflynn89 ✅
2 changed files with 28 additions and 0 deletions
|
@ -33,6 +33,7 @@ struct TextStyle {
|
|||
};
|
||||
|
||||
StringView language_to_string(Language);
|
||||
StringView common_language_extension(Language);
|
||||
|
||||
class Highlighter {
|
||||
AK_MAKE_NONCOPYABLE(Highlighter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue