-
Notifications
You must be signed in to change notification settings - Fork 111
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
“Lua type masks” codes do not match “Lua types” codes – inconsequential? #733
Comments
@bjornbm Yeah, I noticed that mistake recently. My original intention was to provide those masks as a convenience for speedy processing of the The VSCode plugin by @pdesaulniers uses those type values (but not the masks, I think), so if I were to change them to make the values fit the masks I would end up breaking his plugin. (Not sure about @euclidianAce's vim-teal?) It would be a good idea to fix those numbers, but we'd probably need to add versioning info to |
One first approach towards this issue we can do now (prior to reworking the numbers to make them more consistent) would be to drop those incorrect and unused mask entries from the compiler code. |
FWIW, I wouldn't mind changing the type values in the VSCode extension. If this change is implemented, I can either:
(I already parse the output of
vim-teal does not make use of |
Probably inconsequential – and I admit I didn't do the homework to try to figure out – but does it matter that “Lua type masks” do not match “Lua types” (in particular
IS_TABLE
andIS_STRING
)? In contrast, the “Teal type masks” matach the “Teal types”.https://github.com/teal-language/tl/blob/4478a82397f2b5a60424fea894f5fd9dd3387b27/tl.tl#L167C1-L209C1
The text was updated successfully, but these errors were encountered: