I want to replace this.
with @
sign like in coffee script. I've write the macro:
macro (@) {
case { return $a } => { return this.$a }
}
function LogSmth(name) {
this.name = name;
console.log(@name);
}
But got
SyntaxError: [macro] Macro `@` could not be matched with `name...`
57: console.log(@name);
How to fix this?