nojanath / SublimeKSP

Fork of Nils Liberg's SublimeKSP plugin. See README for details.
GNU General Public License v3.0
87 stars 18 forks source link

Macro expansion not applied in strings within l/iterate_macro #306

Closed mkruselj closed 1 year ago

mkruselj commented 1 year ago
on init
    literate_macro(message(#l# & "ordinal is #n#")) on "Foo", "Fee", "Faa"
end on

will result in:

on init
    message("Foo" & "ordinal is #n#")
    message("Fee" & "ordinal is #n#")
    message("Faa" & "ordinal is #n#")
end on

Additionally, if we put #l# inside the string, it won't compile at all, will throw a syntax error (whereas this works fine with normal macros):

on init
    literate_macro(message("#l# ordinal is #n#")) on Foo, Fee, Faa
end on