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
Having to look back at
HighlightingKindjust 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:
Perhaps the styles could remain constants too