Skip to content

Bug with comments inside string literals #54

Description

@Cheatoid

Test snippet:

print "hello world"      -- all fine
print "--[[hello]]world" -- comment inside string?!
print "--[=["            -- breaks everything after
print "bye world"        -- completely broken
--]=]
Image

This causes all kinds of issues with syntax highlighting when trying to make Lua lexer:
Image

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