Skip to content

[bug] broken syntax highlighting for a single-line comment #3457

Description

@Cheatoid

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?

Annotations, Other

Expected Behaviour

The TODO/CONS: lookup table? comment should have the same syntax highlighting as sine and cosine comment.
Meanwhile if I use a block comment, it has correct syntax highlighting:
Image

Actual Behaviour

Image

Reproduction steps

-- sine and cosine
local math_sincos = function(n) -- TODO/CONS: lookup table?
	-- sine and cosine
	return math_sin(n), math_cos(n)
end

Additional Notes

No response

Log File

No response

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