MantisBT - mSLDev | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000129 | mSLDev | Syntax Highlighting | public | 2013-04-09 17:49 | 2013-11-23 23:33 |
Reporter | Wims | ||||
Assigned To | administrator | ||||
Priority | normal | Severity | major | Reproducibility | sometimes |
Status | assigned | Resolution | reopened | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | 0.4.1.0 | |||
Beta mIRC version? | |||||
mIRC Version | |||||
Summary | 0000129: Highlighting a variable in the same scope with $& | ||||
Description | Sometimes the count to highlight all variables of the same name in the same scope is wrong, probably because of $&, resulting in weird part of the text being highlighted, see the steps. | ||||
Steps To Reproduce | alias -l mario_displayobject { ;xcc ycc y dir x1 state inair jump down autod speed head if ($1 == mario) { tokenize 32 $hget(mario_object,mario) var %decal,%xc,%yc,%wc,%hc,%dx,%dy if ($hget(mario,grandi)) { if ($int($calc(($ticks - $hget(mario,t0grandi)) / 150)) & 1) { %xc = 27 * 20 %yc = 17 %wc = 27 %hc = 28 if ($6 == petit) %decal = 1 } if ($calc($ticks - $hget(mario,t0grandi)) >= 1600) hdel mario grandi } ;sprite if (!%xc) { if (!$5) hadd mario mul 0 elseif ($calc($ticks - $hget(mario,t0walk)) >= $iif($istok(4 -4,$5,32),120,150)) { if ($hget(mario,mul) >= $iif($6 == grand,2,1)) hadd mario mul $calc($v2 - 1) else hinc mario mul hadd mario t0walk $ticks } var %xc = $iif($7 || $8,$iif($9 || $10,$calc(4*27),$iif($6 == grand,$calc(27*3),$calc(26*4))),$iif($9 || $10,$calc(27*4),$calc($iif($6 == grand,27,26) * $hget(mario,mul)))) %yc = $iif($6 == grand,17,0) %wc = $iif($6 == grand,27,26) %hc = $iif($6 == grand,28,17) } if ($4 == d) { if ($6 == petit) %dx = 26 - $iif(%xc == 0,11,$iif(%xc == 26,11,$iif(%xc == 104,11,$iif(%xc == 540,11)))) else %dx = 27 - $iif(%xc == 0,12,$iif(%xc == 27,12,$iif(%xc == 54,12,$iif(%xc == 81,12,$iif(%xc == 108,12,$iif(%xc == 540,12)))))) } %dy = $iif($6 == petit,-1,+4) drawcopy -tn @marioo.b 16711935 %xc %yc %wc %hc @marioo $& $calc($1 + %dx) $& $calc($2 * 8 %dy - $3 $iif(%decal,-11) $iif($9 && $12 == 1,-2)) $iif($4 == d,-) $+ %wc %hc ;debug dots var %a 1 while ($var(%xd*,%a).value) { $v1 | inc %a } } } load this in a new file and highlight %dy on line 34, it shouldn't work correctly, it's hard to describe because when i first noticed it, i created a new file and copied exactly what i had, but couldn't reproduce the issue in this new file, i still managed to figure out that the problem seems to be related to the $& but, when i first noticed the problem, it was with %a at the end, after editing the original code, i managed to fix the problem for %a, but then %dy followed, and i could reproduce it on a new file. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-04-09 17:49 | Wims | New Issue | |||
2013-04-09 22:35 | administrator | Status | new => closed | ||
2013-04-09 22:35 | administrator | Assigned To | => administrator | ||
2013-04-09 22:35 | administrator | Resolution | open => fixed | ||
2013-04-09 22:35 | administrator | Fixed in Version | => 0.4.1.0 | ||
2013-06-14 17:33 | Wims | Note Added: 0000116 | |||
2013-06-14 17:33 | Wims | Status | closed => feedback | ||
2013-06-14 17:33 | Wims | Resolution | fixed => reopened | ||
2013-06-29 05:41 | Wims | Note Added: 0000121 | |||
2013-06-29 05:41 | Wims | Status | feedback => assigned | ||
2013-06-29 06:19 | Travis | Note Added: 0000123 | |||
2013-11-23 23:33 | Wims | Note Added: 0000154 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|