better lexer name handling

This commit is contained in:
2026-02-01 16:23:33 +08:00
parent 7962974bc4
commit d399c454ff
4 changed files with 67 additions and 56 deletions

View File

@@ -33,8 +33,12 @@ QString LexerGroupActionMenu::displayName(const QString &lexerName)
{
static const QHash<QString, QString> displayNameMap {
{"cpp", "C++"},
{"python", "Python"},
{"cmake", "CMake"},
{"hypertext", "HTML"},
{"xml", "XML"},
{"json", "JSON"},
{"css", "CSS"},
{"powershell", "PowerShell"}
};