olety / cjass

Preserving cjass code from code.google.com/p/cjass
0 stars 0 forks source link

macro basic breaked (//! endtextmacro isn't converted to } ) #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
//! textmacro a
//! endtextmacro

expected:
define tma = {
}

actual:
define tma = {
//! endtextmacro

What version of the product are you using? On what operating system?
latest

Original issue reported on code.google.com by mrasolo...@gmail.com on 11 Aug 2011 at 7:15

GoogleCodeExporter commented 9 years ago
Make sure that you edit lua 
(http://code.google.com/p/cjass/wiki/BetaTestNotes?ts=1313066592&updated=BetaTes
tNotes#How_to_instal_the_beta) and you use really latest version (now it 
1.4.2.32)

This version use another textmacro preprocessor (it get all textmacro from main 
script and launch JassHelper to parse it). Also you may have bugs with 
texmacros, defined in the included files:

some.j:
//! textmacro ...
//! endtextmacro

#include "some.j"

Bug with textmacros that declared in includes files not fidex yet.

> latest
Next time write 1.4.2.** )

May you test it again with newest version and edited wehack.lua? If it does't 
work again - post the map (***.w3x)

Original comment by adi...@gmail.com on 11 Aug 2011 at 12:54

GoogleCodeExporter commented 9 years ago
The problem is,
This:
//! textmacro a
//! endtextmacro
doesnt work! But
//! textmacro a
//! endtextmacro
//
This does.
Just has to be an empty line after it.

Original comment by erwgfifo...@gmail.com on 11 Aug 2011 at 1:40

GoogleCodeExporter commented 9 years ago
Fixed in 1.4.2.33 (http://code.google.com/p/cjass/downloads/list).

This is no empty line bug) I try to test `//! endtextmacro\0` and could't get 
it. Really buugy `//! endtextmacro//===================` (<- comment added by 
world editor) construction.

Thx 2all.

Original comment by adi...@gmail.com on 11 Aug 2011 at 5:50