Skip to content

Commit

Permalink
Look for highlight language case-insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 28, 2023
1 parent a9cbe0f commit 10cd805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spellcheck/spellcheck_highlight_syntax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void QueuedHighlighter::process(Request request) {
}

const auto text = request.text.toStdString();
const auto language = request.language.toStdString();
const auto language = request.language.toLower().toStdString();
const auto tokens = _highlighter->tokenize(text, language);

static const auto colors = base::flat_map<std::string, int>{
Expand Down

0 comments on commit 10cd805

Please sign in to comment.