[BUGFIX] Code completion in t3editor behind operator 04/36804/2
authorFrederic Gaus <gaus@flagbit.de>
Tue, 10 Feb 2015 16:02:07 +0000 (17:02 +0100)
committerBenjamin Mack <benni@typo3.org>
Sun, 1 Mar 2015 13:50:53 +0000 (14:50 +0100)
Fix code completion in t3editor when substituing a value with
completed code behind a typoscript operator.

Change-Id: Id1fbb99aba850ee0787dba4b8562d0a22c119979
Resolves: #25594
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/36804
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/t3editor/res/jslib/parse_typoscript/tokenizetyposcript.js

index b014cb0..1bbeda7 100644 (file)
@@ -2580,13 +2580,12 @@ var tokenizeTypoScript = function() {
                                token = nextUntilUnescaped(ch) || result("string", "string");
 
                        } else if (
-                          ( ch == "<" ||
-                                  ch == ">" ||
-                                ( ch == "="
-                                  && source.peek() != "<"
-                                )
-                          )
-                          && source.peek() != "\n" ) { // there must be some value behind the operator!
+                               (ch == "<" ||
+                                       ch == ">" ||
+                                       ch == "." ||
+                                       (ch == "=" && source.peek() != "<")
+                               )
+                               && source.peek() != "\n" ) { // there must be some value behind the operator!
                                this.inValue = true;
                                token = result(ch, "ts-operator");