Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting issues with LuaFormatter in CfxLua environment #294

Open
damag-dev opened this issue Apr 18, 2024 · 0 comments
Open

Formatting issues with LuaFormatter in CfxLua environment #294

damag-dev opened this issue Apr 18, 2024 · 0 comments

Comments

@damag-dev
Copy link

Hey I'm encountering two major formatting errors while using LuaFormatter in the CfxLua environment:

  1. Tildes are being removed.
    The tildes are removed during formatting, resulting in transformation them into variable.
    `prop_name` -> prop_name

  2. Safe Navigation operators are being removed.
    The safe navigation operators (?) are being removed during formatting, altering the code's functionality.
    User?.Weapon?.Ammo -> User.Weapon.Ammo

If you want to find more info about usage of this 2 look here CFXLua README
Search for:

  1. Compile Time Jenkins' Hashes
  2. Safe Navigation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant