Fixed bug #8263 t3editor should not highlight decimals
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 20 May 2008 09:22:48 +0000 (09:22 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 20 May 2008 09:22:48 +0000 (09:22 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3670 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 8d8758f..3f2e365 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-05-20  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #8263 t3editor should not highlight decimals (thanks to Tobias Liebig)
+
 2008-05-20  Ingo Renner  <ingo@typo3.org>
 
        * Fixed bug #8445: Align group fields in TCEforms
index b29ff73..53a7a0e 100644 (file)
@@ -1208,18 +1208,6 @@ var tokenizeTypoScript = function() {
 
                function readNumber() {
                        nextWhile(isDigit);
-                       if (source.peek() == ".") {
-                               source.next();
-                               nextWhile(isDigit);
-                       }
-
-                       if (source.peek() == "e" || source.peek() == "E") {
-                               source.next();
-                               if (source.peek() == "-") {
-                                       source.next();
-                               }
-                               nextWhile(isDigit);
-                       }
                        return result("number", "atom");
                }