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

[Lua] Split out = from other operators #4143

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mbartlett21
Copy link
Contributor

@mbartlett21 mbartlett21 commented Feb 6, 2025

The syntax now handles multi-global statements correctly and also makes attributes only apply in local statements. It also marks some other things as invalid in local statements.

    a, b = c, d
--   ^ punctuation.separator.comma
--          ^ punctuation.separator.comma


    globals_no_modifiers <const> 7
--                       ^ keyword.operator.comparison.lua
--                        ^^^^^ variable.other.lua
--                             ^ keyword.operator.comparison.lua

    local a + b
--          ^ invalid

@mbartlett21 mbartlett21 marked this pull request as draft February 7, 2025 23:11
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

Successfully merging this pull request may close these issues.

3 participants