highlighter.cpp
changeset 449 5378ed53ec92
parent 435 bd71dfb2292c
child 471 9c26d66d4c53
     1.1 --- a/highlighter.cpp	Wed Mar 21 11:51:38 2007 +0000
     1.2 +++ b/highlighter.cpp	Tue Apr 10 13:22:55 2007 +0000
     1.3 @@ -36,18 +36,28 @@
     1.4      keywordFormat.setForeground(Qt::darkBlue);
     1.5      keywordFormat.setFontWeight(QFont::Bold);
     1.6      QStringList keywordPatterns;
     1.7 -    keywordPatterns << "\\baddBranch\\b" << "\\baddBranchBefore\\b" 
     1.8 -                    << "\\baddMapInsert\\b" << "\\baddMapReplace\\b"
     1.9 -                    << "\\bcolorBranch\\b" << "\\bcolorSubtree\\b"
    1.10 -                    << "\\bcut\\b" << "\\bdelete\\b" 
    1.11 -					<< "\\bdeletepKeepChilds\\b" << "\\bdeletepChilds\\b"
    1.12 -					<< "\\blinkTo\\b" << "\\bloadImage\\b"
    1.13 -					<< "\\bmoveBranchUp\\b" << "\\bmoveBranchDown\\b"
    1.14 -					<< "\\bmove\\b" << "\\bmoveRel\\b"
    1.15 +    keywordPatterns << "\\baddBranch\\b" 
    1.16 +					<< "\\baddBranchBefore\\b" 
    1.17 +                    << "\\baddMapInsert\\b" 
    1.18 +					<< "\\baddMapReplace\\b"
    1.19 +                    << "\\bcolorBranch\\b" 
    1.20 +					<< "\\bcolorSubtree\\b"
    1.21 +                    << "\\bcut\\b" 
    1.22 +					<< "\\bdelete\\b" 
    1.23 +					<< "\\bdeletepKeepChilds\\b" 
    1.24 +					<< "\\bdeletepChilds\\b"
    1.25 +					<< "\\blinkTo\\b" 
    1.26 +					<< "\\bloadImage\\b"
    1.27 +					<< "\\bmoveBranchUp\\b" 
    1.28 +					<< "\\bmoveBranchDown\\b"
    1.29 +					<< "\\bmove\\b" 
    1.30 +					<< "\\bmoveRel\\b"
    1.31  					<< "\\bpaste\\b" 
    1.32  					<< "\\bsaveImage\\b" 
    1.33  					<< "\\bscroll\\b" 
    1.34 -					<< "\\bselect\\b" << "\\bselectLastBranch\\b" << "\\bselectLastImage\\b"
    1.35 +					<< "\\bselect\\b" 
    1.36 +					<< "\\bselectLastBranch\\b" 
    1.37 +					<< "\\bselectLastImage\\b"
    1.38  					<< "\\bsetMapAuthor\\b" 
    1.39  					<< "\\bsetMapComment\\b" 
    1.40  					<< "\\bsetMapBackgroundColor\\b" 
    1.41 @@ -60,6 +70,7 @@
    1.42  					<< "\\bsetURL\\b" 
    1.43  					<< "\\bsetVymLink\\b" 
    1.44  					<< "\\bsetFlag\\b" 
    1.45 +					<< "\\btoggleFlag\\b" 
    1.46  					<< "\\bunscroll\\b" 
    1.47  					<< "\\bunsetFlag\\b" 
    1.48  					;
    1.49 @@ -84,7 +95,7 @@
    1.50      rule.format = singleLineCommentFormat;
    1.51      highlightingRules.append(rule);
    1.52  
    1.53 -	// Single line comments
    1.54 +	// multiline comments
    1.55      multiLineCommentFormat.setForeground(Qt::red);
    1.56      commentStartExpression = QRegExp("/\\*");
    1.57      commentEndExpression = QRegExp("\\*/");