[TYPO3-core] RFC #4453: C style TypoScript comments with start and end in one line lead to errors
Jigal van Hemert
jigal at xs4all.nl
Sat Dec 18 22:20:15 CET 2010
Hi,
On 18-12-2010 18:15, Steffen Kamper wrote:
> but this is "old school" and not needed. So i agree this is a bug as all
> other languages know about right commenting, and TS should also.
TypoScript is not like "all other languages". Also, if we are going to
support /* */ comments like some other languages do, I think we should
go all the way:
- /* should not need to be at the very beginning of a line
- contents after */ is not part of the comment
Furthermore we should decide what to do with:
- comments inside parameter values ( object.wrap = <div>/* See: | */</div> )
- comments inside multi-line values (between () )
This probably needs some major rewriting of the TS parser. Frankly, I'm
not sure it's worth the effort just to support a slightly different
style of comments.
I agree with Thorsten that it may produce more problems than it solves.
So, I'm afraid I'll give it a -1 for this partial solution.
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-team-core
mailing list