Skip to content

LSH Coloring variation #883

@chorgard

Description

@chorgard

Having to look back at HighlightingKind just to see what hightlighting styles I have available to work with is very annoying, and adding new colors is unnecessarily difficult. Perhaps an adjustment to the LSH language could be added so that maybe yield can just work directly with the ANSI colors? Either that or the ability to define new styles within the LSHs would be great.

Maybe like this:

pub fn regular_expression() {
    style escape "\x1b[31;4m" // Red + Underline
    until /$/ {
        yield string;
        if /\\./ {
            yield escape;
        }
        else if /\// { yield string; break; }
        await input;
    }
}

Perhaps the styles could remain constants too

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions