LuaHelper
LuaHelper copied to clipboard
Support for non-standard symbols?
I'm working on a project that has a build process that runs as a preprocessor and converts backticks to convert values before runtime. so I could have
local test = `somevalue`
-- or
local test2 = {
[`weapon_name`] = "information"
}
Then before the code is run those would be converted to hash values. In another resource it makes use of Lua › Runtime: Nonstandard Symbol
which saves to settings.json as:
"Lua.runtime.nonstandardSymbol": [
"`"
],
Would it be possible to add support for something like that? I'd just like them to be treated just as a string would just without auto-replacement and not throwing errors, nothing fancy. There's a whole community using this same system. read more
This is not very versatile, can you automatically convert it in advance?
not without making it unreadable. also we have added support for safe navigation which would be nice to have support for also
This is the only thing stopping me from switching to this extension at the moment, unfortunately. Would love to see this added
I'm very sorry, backticks are not Lua's standard string display. If I support this, I should change Lua's lexical analysis, it is not very versatile..