Skip to content

Comment Block Disruption Not Marked #1805

@chadvandy

Description

@chadvandy

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Diagnostics/Syntax Checking

Expected Behaviour

The debugger should mark the nested comment block as erroneous, because Lua will still interpret the contents within a comment block for other comment triggers including the close block.

Actual Behaviour

The debugger doesn't mark the comment block as erroneous, instead allowing it to seem fine to have two comment blocks within another.

Reproduction steps

  1. Put a regular full comment block, ie. "--[[" and "--]]" around any block of code.
  2. Put another "--[[" before the closing "--]]".
  3. Try to run that code; should spit out a compilation error.

image

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions