• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Textmacro bug

Status
Not open for further replies.
Level 8
Joined
Oct 3, 2008
Messages
367
Textmacros in JASS tags are acting... weird.

//! textmacro Trackable2__InterfaceFunc takes NAME, TYPE
function GetTrackable2$NAME$ takes Trackable2 which returns $TYPE$
return which.$NAME$
endfunction
//! endtextmacro

JASS:
//! textmacro Trackable2__InterfaceFunc takes NAME, TYPE
function GetTrackable2$NAME$ takes Trackable2 which returns $TYPE$
    return which.$NAME$
endfunction
//! endtextmacro
If you quote my post, you will see that those blocks are the same. However, within JASS tags, it's saying

function GetTrackable2$NAME$GetTrackable2 takes

instead of the proper

function GetTrackable2$NAME$ takes

What's going on, here?
 
Last edited by a moderator:
Level 40
Joined
Dec 14, 2005
Messages
10,532
JASS:
//! textmacro Whee takes A, B
function TestFunc$A$MoreText takes $B$ it returns $B$
    return it.$A$
endfunction
//! endtextmacro

//! textmacro Wheee takes A, B
function FuncTest$A$MoreText takes $B$ it returns $B$
    return it.$A$
endfunction
//! endtextmacro

JASS:
//! textmacro Whee takes A, B
function FuncTest$A$MoreText takes hi.$B$ it returns $B$
    return it.$A$
endfunction
//! endtextmacro

Strange.
 

Ralle

Owner
Level 79
Joined
Oct 6, 2004
Messages
10,183
JASS:
//! textmacro Whee takes A, B
function TestFunc$A$MoreText takes $B$ it returns $B$
    return it.$A$
endfunction
//! endtextmacro

//! textmacro Wheee takes A, B
function FuncTest$A$MoreText takes $B$ it returns $B$
    return it.$A$
endfunction
//! endtextmacro

JASS:
//! textmacro Whee takes A, B
function FuncTest$A$MoreText takes hi.$B$ it returns $B$
    return it.$A$
endfunction
//! endtextmacro

Strange.
You said that everything between the $$s should be bold. It does as it's told
 
Last edited by a moderator:
Status
Not open for further replies.
Top