HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jass Tag Bug

09-30-2009, 11:00 PM#1
Rising_Dusk
List BBCode Bug Inside JASS Tags
[jass]//This is a test of[list]
function X takes nothing returns nothing
local integer list = 2
local integer array Test
set Test[1] = 2
set Test[list]
= 3
set Test[3] = 4
endfunction[/jass]
Yields a mess up due to the [list] tag as follows:
Collapse JASS:
//This is a test of[list]
function X takes nothing returns nothing
    local integer list = 2
    local integer array Test
    set Test[1] = 2
    set Test[list]
= 3
    set Test[3] = 4
endfunction
Try it for yourself, because vB edits the post you try it in as you post it to adjust for the list tag. When you test it, move the = 3 in the above noparse tags to where it should be and see how the site edits it.
09-30-2009, 11:07 PM#2
Captain Griffen
Doubt it's fixable, like [i] in [jass]. The BBCode parser is a bit crap like that.
09-30-2009, 11:33 PM#3
Rising_Dusk
Collapse JASS:
//Testing the [i] BBCode and [/i]
set test[i] = 2
It appears fixed to me. Vex has also corrected the url tag bug that used to occur as well.
10-01-2009, 12:27 AM#4
Vexorian
I fixed that? I don't remember.
10-01-2009, 08:12 PM#5
Captain Griffen
Collapse JASS:
//The i in the line below is a capital I
set test[i] = 2

O rly?
10-01-2009, 08:40 PM#6
Rising_Dusk
Oh, I see. That bug.
10-02-2009, 07:41 PM#7
Rising_Dusk
One more thing: is there any reason that not isn't a keyword?