Bug #31952
closedWrong "comment" interpretation in typoscript(-files)
0%
Description
Hi all,
in one of my typoscript files I put in a comment-statement like this:
/* This is the comment: */
It seems that TYPO3 ignores the comment-end "*/" in the same row like the comment-start "/*"!?
The result was, that all the typoscript statements following the above mentioned comment line would all be interprated as COMMENT (till the end of file)!
Kind regards from Jülich, Germany
Kurt Kunig
Updated by Susanne Moog about 13 years ago
- Status changed from New to Rejected
This is by design and documented that way:
"Comment blocks
When a line starts with "/*" or "*/" it defines the beginning or the end of a comment section respectively. Anything inside a comment section is ignored.
Rules:
/* and */ MUST be the very first characters of a trimmed line in order to be detected.
Comment blocks are not detected inside a multi-line value block (see parenthesis operator below)."
see http://typo3.org/documentation/document-library/core-documentation/doc_core_ts/4.6.0/view/1/2/