Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Feb 23, 2021
1 parent 65af0ed commit 2518f59
Show file tree
Hide file tree
Showing 9 changed files with 530 additions and 981 deletions.
7 changes: 3 additions & 4 deletions document.cpp
Expand Up @@ -1196,21 +1196,19 @@ void CDocument::set_hl (bool mode_auto, const QString &theext)
if (p->first.isValid())
if (p->first.exactMatch(file_name))
{
// qDebug() << p->first.pattern() << " IS valid with " << p->second;
fname = p->second;
fname = p->second;
break;
}
}


#endif

if (fname.isEmpty() || ! file_exists (fname))
return;

#if QT_VERSION >= 0x050000

highlighter = new CSyntaxHighlighterQRegularExpression (document(), this, fname);
highlighter = new CSyntaxHighlighterQRegularExpression (document(), this, fname);

#else

Expand All @@ -1219,6 +1217,7 @@ void CDocument::set_hl (bool mode_auto, const QString &theext)
#endif
}


void CDocument::set_markup_mode()
{
markup_mode = holder->markup_mode;
Expand Down

0 comments on commit 2518f59

Please sign in to comment.