Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Tue Nov 06, 2007 9:29 pm   

[2.10] Bug - Compat report with ~< ~>
 
While testing a different problem:

#SUBS {%ansi(12)<%ansi(green) @tleftarm @trightarm~~@tleftleg @trightleg%ansi(12)>%ansi(reset)}
#SUBS {%ansi(12)~<%ansi(green) @tleftarm @trightarm~~@tleftleg @trightleg%ansi(12)~>%ansi(reset)}

They both trigger the same compatibility report bug:

Trigger
<> immediate expansion syntax no longer used [Help] : <%ansi(green) @tleftarm @trightarm~~@tleftleg @trightleg%ansi(12)>


I just want to display them, not use them for immediate expansion. Am I doing it wrong, or is the report just misinterpreting their purpose in my script?
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Nov 06, 2007 9:44 pm   
 
The report doesn't necessarily flag problems, it flags things that might be problems. The <> characters don't do anything in CMUD, which might break a zMUD script that relies on them. Since you weren't using them for immediate expansion in the first place, there's no problem.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Nov 06, 2007 10:31 pm   
 
Yeah, the compatibility report has no way to distinguish between the old <> expansion syntax in zMUD and the use of <> in MXP/HTML.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Nov 06, 2007 11:12 pm   
 
Change the regex that detects detects the <> to also check for a tilde not being there. [^~], or if the tilde has a problem being passed to the regex engine you can use [^\176].
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net