Skip to content

Lua long string incorrect - Need to capture begin pattern. #1927

Closed
@bakpakin

Description

@bakpakin

Lua long string and comments are incorrect. The language syntax seems to expect that the delimiters needed to be paired, which is not the case.

Example:

--[===[
This a comment
]==]
This is still a comment, but not recognized as such by highlight.js
]===]

local function more(...)
  return
end

I encountered this issue while trying to add syntax highlighting for my own language, and was looking at other examples. Is there anyway to reference captures in the begin pattern in the end pattern?

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