prometheus-lua / Prometheus

Lua Obfuscator written in pure Lua
https://levno-710.gitbook.io/prometheus/
GNU Affero General Public License v3.0
205 stars 61 forks source link

[BUG] Glua can't be parse with --LuaU #97

Closed bozoweed closed 1 year ago

bozoweed commented 1 year ago

Describe the bug ←[0m←[31mPROMETHEUS: Lexing Error at Position 4:4, Unexpected char "!"!←[0m

the line is like

if(!loaded)then print("not loaded")end

Expected behavior should parse it or replace the excepted code

To Reproduce if(!loaded)then print("not loaded")end prometheus.exe --LuaU --preset Medium (dowload from alpha lastest

If your problem is a non-working obfuscated file, please also include a minimal source code example, your config file as well as the output file that you got.

all is default value

Screenshots image

levno-710 commented 1 year ago

This is, because LuaU is not GLua.

While Glua Support !, LuaU only supports the not keyword.