MantisBT - mSLDev
View Issue Details
0000059mSLDevSyntax Highlightingpublic2012-05-04 01:372012-07-21 17:53
Matt 
administrator 
immediateblockalways
closedno change required 
Win7 64-bitWindows 7(6.1)
0.2.1.7 
 
0000059: Bug catching comments at the ends of a line.
The client is unable to catch if a comment is at the end of a line, like so:


if (%exparam == 1 || %exparam == exp) { var %overtype = exp } ; @exp (Show experience)
No tags attached.
Issue History
2012-05-04 01:37MattNew Issue
2012-05-06 03:12administratorNote Added: 0000018
2012-05-06 03:16administratorNote Edited: 0000018bug_revision_view_page.php?bugnote_id=18#r13
2012-07-21 17:53administratorStatusnew => closed
2012-07-21 17:53administratorAssigned To => administrator
2012-07-21 17:53administratorResolutionopen => no change required

Notes
(0000018)
administrator   
2012-05-06 03:12   
(edited on: 2012-05-06 03:16)
That's not a bug. It should be "} | ; comment" and the comment will span all the way to the next pipe (or end of line, whichever is first).

mIRC is buggy when it comes to brackets:

Try this:

alias test {
  if (1) { noop } echo -a I will print (1)
  if (0) { noop } echo -a I will not (2)
  if (1) { noop } | echo -a I will print (3)
  if (0) { noop } | echo -a I will print (4)
}

The pipe is actually required. Otherwise the behavior is undefined. (It was actually changed around 6.2 or so, so it's also be unreliable. I highly advise not relying on this working as you expect in future versions of mIRC.)