Skip to content

SQL language detection breaks if you use a < or > character in an if statement #1432

@jasongisstl

Description

@jasongisstl

If you have a less than or greater than character in an if statement, SQL language detection will fail.

E.g:
hljs.highlightAuto("if 5 < 10", ["sql"]);

Returns text with no language highlighting, as "<" is detected as an 'illegal lexeme'.

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