Skip to content

When goto is used as an bare identifier of a field in a table does not produce an error diagnostic #3492

Closed

Description

@armagidon-exception

How are you using the lua-language-server?

NeoVim

Which OS are you using?

Linux

What is the issue affecting?

Diagnostics/Syntax Checking

Expected Behaviour

When you have bare goto as a member identifier, it has to produce a syntax error diagnostic.

Actual Behaviour

It does not produce such a diagnostic.

Reproduction steps

  1. Open a new lua file
  2. Type something like this
local t = {
    goto = 1
}
  1. Observe that no diagnostic is produced.

Additional Notes

No response

Log File

could not find one.

Activity

  1. CppCXY commented on Nov 9, 2026

    @CppCXY
    Member

    Because LuaJIT and Lua 5.1 support using goto as an identifier.

  2. armagidon-exception commented on Nov 9, 2026

    @armagidon-exception
    Author

    Because LuaJIT and Lua 5.1 support using goto as an identifier.

    Sorry to bother. Closing then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions