I've been using @PKGNAME@ as a prefix to namespace any globals I create, but because @ symbols are not valid inside of lua identifiers, this does not sit well with the language server in vscode:
I suggest an alternative syntax allowing double-underscores (__) to replace the @ symbols anywhere this global search and replace happens, so that
__PKGNAME__ is equivalent to @PKGNAME@; and such that if my package is named Foo, then __PKGNAME___bar will transpile to Foo_bar within generated mudlet lua scripts.
Use case
I've been using
@PKGNAME@
as a prefix to namespace any globals I create, but because@
symbols are not valid inside of lua identifiers, this does not sit well with the language server in vscode:I suggest an alternative syntax allowing double-underscores (
__
) to replace the@
symbols anywhere this global search and replace happens, so that__PKGNAME__
is equivalent to@PKGNAME@
; and such that if my package is namedFoo
, then__PKGNAME___bar
will transpile toFoo_bar
within generated mudlet lua scripts.