Skip to content

continue -- comment rejected with runtime.nonstandardSymbol=["continue"] #3474

Open

Description

@GrayWolf64

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Linux

What is the issue affecting?

Diagnostics/Syntax Checking

Expected Behaviour

The continue should not be underlined in red or error.

   for i = 1, 2 do
       continue -- trailing comment
   end

Actual Behaviour

Two errors:

  • Unexpected < exp > . Lua Syntax Check.(exp-in-action)
  • Undefined global continue. Lua Diagnostics.(undefined-global)

Reproduction steps

This parses correctly:

  for i = 1, 2 do
      continue
  end

This does not:

  for i = 1, 2 do
      continue -- trailing comment
  end

Additional Notes

No response

Log File

No response

Activity

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