[B3.1][MS] Compiler fails on "-->"

Moderator: NADEO

Locked
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

[B3.1][MS] Compiler fails on "-->"

Post by m4rcel »

The ManiaScript compiler fails if the three characters "-->" appear (end of XML comment).

Test Manialink:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<manialink version="1" background="title">
	<timeout>0</timeout>
	<script><!--
declare Text Temp = "-->";
	--></script>
</manialink>
Resulting text in debugger:

Code: Select all

declare Text Temp = "";
	-->
So I assume, that the Compiler fails to remove the correct "-->", having the first occurence removed instead of the last one. This should be fixed.


Current workaround: Do not wrap the Maniascript in a XML-comment, and it compiles fine.
ImageImage
Image
Locked

Return to “Maniaplanet Reports”

Who is online

Users browsing this forum: No registered users and 1 guest