From 902940401d1c1e657cdaf3e7bae8cbb89d14ffa9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 15 Nov 2026 08:57:03 +0100 Subject: added left shift (^<) and right shift (^>) operators Previously you'd have to write `a * 2^*b` for left shift, which is inefficient and cumbersome. --- src/lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lexer.c') diff --git a/src/lexer.c b/src/lexer.c index 2eae8c4..1eaf6ff 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -46,7 +46,7 @@ teco_lexer_getstyle(teco_view_t *view, teco_machine_main_t *machine, strchr(",+-*/#&()", chr)) old_style = SCE_SCITECO_OPERATOR; else if (machine->parent.current == &teco_state_control && - strchr("*/#", chr)) + strchr("<>*/#", chr)) /* * Two-character operators must always begin with caret * They get a separate style, so we can extend it back to -- cgit v1.2.3