[FOLLOWUP][!!!][TASK] Remove deprecated code from ext:core 75/52575/4
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 24 Apr 2017 17:57:44 +0000 (19:57 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 26 Apr 2017 16:42:59 +0000 (18:42 +0200)
Read lines which are actually needed, e.g. to show
the settings in the Extension Manager.

Resolves: #80716
Releases: master
Change-Id: Ie87f91a1f7443d9365e4313b5ea4707e4bd1e50b
Reviewed-on: https://review.typo3.org/52575
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php

index 80b9f88..fb6abb0 100644 (file)
@@ -480,6 +480,14 @@ class TypoScriptParser
                         } else {
                             break;
                         }
+                    } else {
+                        if ($this->syntaxHighLight) {
+                            $this->regHighLight('comment', $lineP);
+                        }
+                        // Comment. The comments are concatenated in this temporary string:
+                        if ($this->regComments) {
+                            $this->lastComment .= rtrim($line) . LF;
+                        }
                     }
                     if (strpos($line, '### ERROR') === 0) {
                         $this->error(substr($line, 11));