diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-11 05:17:35 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-11 05:17:35 -0400 |
commit | 123f0cb39e9670e9e89a2f62e2d5657c3e74aaa7 (patch) | |
tree | f59e5c1975ad6455e3bba569602002d23127ecd2 /src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h | |
parent | Darken up the emblem icons in the "-dark" theme a bit more, there still was n... (diff) | |
download | lumina-123f0cb39e9670e9e89a2f62e2d5657c3e74aaa7.tar.gz lumina-123f0cb39e9670e9e89a2f62e2d5657c3e74aaa7.tar.bz2 lumina-123f0cb39e9670e9e89a2f62e2d5657c3e74aaa7.zip |
Add support for a new "file_regex" flag in the JSON syntax manifests that can be used when looking for matching file type support.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h index fde68f84..d168b70f 100644 --- a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h +++ b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h @@ -46,7 +46,7 @@ public: QString name(); int char_limit(); - bool highlight_excess_whitespace(); + bool highlight_excess_whitespace(); int tab_length(); void SetupDocument(QPlainTextEdit *editor); @@ -73,14 +73,14 @@ public: settings = set; } ~Custom_Syntax(){} - + static QStringList availableRules(QSettings *settings); static QStringList knownColors(); static void SetupDefaultColors(QSettings *settings); static QString ruleForFile(QString filename, QSettings *settings); void loadRules(QString type); void loadRules(SyntaxFile sfile); - + void reloadRules(){ loadRules( syntax.name() ); } @@ -92,7 +92,7 @@ protected: int start = 0; int splitactive = previousBlockState(); if(splitactive>syntax.rules.length()-1){ splitactive = -1; } //just in case - + while(start>=0 && start<=text.length()-1){ //qDebug() << "split check:" << start << splitactive; if(splitactive>=0){ |