Skip to content

SQL comment yields wrong highlighting #1454

@fabsenet

Description

@fabsenet

I have the following sql. Yes, I have sql queries in database tables. Do not judge me 🐇

This is the code i want to highlight:

INSERT INTO MESSAGESEARCHPATTERN (name, query)
VALUES ('a','select ''hello world'' from a')

-- this is a comment

INSERT INTO MESSAGESEARCHPATTERN (name, query)
VALUES ('a','select ''hello world'' from a')

this is, what the test page/prismjs makes from it (language is SQL):
grafik

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions