aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lexer.c
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-15 08:57:03 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-15 08:57:03 +0100
commit902940401d1c1e657cdaf3e7bae8cbb89d14ffa9 (patch)
treee6811396df64a7d4e05788752d5a343357aa846f /src/lexer.c
parentb0f4c1d2b5076c453f3767426db3eecbdc6dfd42 (diff)
added left shift (^<) and right shift (^>) operatorsHEADmaster
Previously you'd have to write `a * 2^*b` for left shift, which is inefficient and cumbersome.
Diffstat (limited to 'src/lexer.c')
-rw-r--r--src/lexer.c2
1 files changed, 1 insertions, 1 deletions
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