Fixed bug #8478: highlighting error (the next line after a ">" gets colored as "value...
authorBenni Mack <benni.mack@typo3.org>
Tue, 10 Jun 2008 13:41:49 +0000 (13:41 +0000)
committerBenni Mack <benni.mack@typo3.org>
Tue, 10 Jun 2008 13:41:49 +0000 (13:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3780 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/t3editor/jslib/codemirror/tokenizetyposcript.js

index 2ebb6cf..3600f51 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2008-06-10  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #8478: highlighting error (the next line after a ">" gets colored as "value") (Thanks to Tobias Liebig)
        * Fixed bug #2905: Followup - t3skin - Styling of tab menus is bad when hovering (Thanks to Ben van't Ende)
 
 2008-06-10  Ernesto Baschny  <ernst@cron-it.de>
index 53a7a0e..b49ea99 100644 (file)
@@ -1286,9 +1286,14 @@ var tokenizeTypoScript = function() {
                        } else if (ch == "\"" || ch == "'") {
                                token = nextUntilUnescaped(ch) || result("string", "string");
 
-                       } else if (ch == "<"
-                         || ch == ">"
-                         || ch == "=") {
+                       } else if (
+                          ( ch == "<" || 
+                                ch == ">" ||
+                                ( ch == "=" 
+                                  && source.peek() != "<" 
+                                )
+                          )
+                          && source.peek() != "\n" ) { // there must be some value behind the operator!
                                this.inValue = true;
                                token = result(ch, "ts-operator");