aboutsummaryrefslogtreecommitdiff
blob: 1d1e906e3ae07c0c66b66b59713aa7c57f6778ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- kalgebra/src/algebrahighlighter.cpp        2008-09-18 13:49:22.000000000 +0100
+++ kalgebra/src/algebrahighlighter.cpp        2008-10-29 14:52:08.000000000 +0000
@@ -61,9 +61,7 @@
       QPalette pal=qApp->palette();
       QColor number(pal.color(QPalette::Active, QPalette::Link));
       QColor variable(pal.color(QPalette::Active, QPalette::LinkVisited));
-      QColor definedFunction(0,50,0);
-      QColor undefinedFunction(0,0x86,0);
-      QColor block(50,0,50);
+      QColor id(50,0,50);
       QColor uncorrect(Qt::red);
       QColor brHighlight(0xff,0xa0,0xff);
       QColor prHighlight(0xff,0xff,0x80);
@@ -89,7 +87,7 @@
                                       setFormat(i+1, 1, negreta);
                                       inside--;
                               } else if(lasttag.endsWith(QChar('/'))) {
-                                      setFormat(i+1, j-i-1, definedFunction);
+                                      setFormat(i+1, j-i-1, id);
                                       setFormat(j+1, 2, negreta);
                               } else if(j!=k) {
                                       setFormat(i+1, j-i-1, QColor(150,0,0));
@@ -127,17 +125,8 @@
                                                       f=variable;
                                       }
                                       break;
-                              case ExpressionTable::tFunc:
-                                      if(a && a->variables()->contains(lex.current.val))
-                                              f=definedFunction;
-                                      else
-                                              f=undefinedFunction;
-                                      break;
-                              case ExpressionTable::tBlock:
-                                      if(Container::toContainerType(lex.current.val))
-                                              f=block;
-                                      else
-                                              f=uncorrect;
+                              case ExpressionTable::tId:
+                                      f=id;
                                       break;
                               case -1:
                                       m_correct = false;