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
sarah@localhost ~/project (main) [2]> StyLua example.luau
error: could not format file example.luau: error parsing: error occurred while creating ast: unexpected token `&`. (starting from line 1, character 10 and ending on line 1, character 11)
additional information: expected type after colon
sarah@localhost ~/project (main) [2]> StyLua --version
stylua 0.20.0
sarah@localhost ~/project (main)>
StyLua was installed from aftman.
The issue appears to be that full-moon cannot parse it, so StyLua fails.
The text was updated successfully, but these errors were encountered:
When the leading & or | are used in some specific cases, they don't parse. Here are the cases I found so far
-- in function return typestypeFn= () ->&A&Blocalfunctionoof(): &A&Bend-- in generic parameterstypeA=Generic<&boolean&string>-- in variadic type packstypeFn= (...&boolean&string) -> ()
From JohnnyMorganz/StyLua#877:
The issue appears to be that full-moon cannot parse it, so StyLua fails.
The text was updated successfully, but these errors were encountered: