You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to use the ? optional chaining operator, but since it’s not supported by default, StyLua treats it as a syntax error: unexpected token ?``
I’ve tried using -- stylua: ignore, but it seems this only bypasses formatting and not syntax validation.
Is there a way to make StyLua ignore specific syntax errors like this?
The text was updated successfully, but these errors were encountered:
Unfortunately this is not possible right now. We need to have a successfully parsing syntax tree to perform formatting. Right now this is mainly for safety to verify we don't mess anything up. The --stylua: ignore comment is found based off the syntax tree.
Is this syntax from a particular project? e.g., I have in my backlog to see what it takes to support GMod Lua (#930) and FiveM Lua (#855)
I’m trying to use the
?
optional chaining operator, but since it’s not supported by default, StyLua treats it as a syntax error:unexpected token
?``I’ve tried using
-- stylua: ignore
, but it seems this only bypasses formatting and not syntax validation.Is there a way to make StyLua ignore specific syntax errors like this?
The text was updated successfully, but these errors were encountered: