- Reaction score
- 456
JASS:
library MyLib
//! textmacro TextMacro takes NAME
private scope $NAME$Scope
endscope
//! endtextmacro
//! runtextmacro TextMacro("First")
//! runtextmacro TextMacro("Second")
//! runtextmacro TextMacro("Third")
endlibrary
This sometimes gives me syntax error, but not always. But when it gives the syntax error, it goes like:
Line XX: Unable to find initializer: [endscope is highlighted]
Line XX: (From this macro instance) [the first text macro run is highlighted]
..
But if I remove the private keyword from the scope, it saves fine in every map.