aboutsummaryrefslogtreecommitdiff
path: root/lib/ls_lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ls_lex.c')
-rw-r--r--lib/ls_lex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ls_lex.c b/lib/ls_lex.c
index a5908dd..4de0318 100644
--- a/lib/ls_lex.c
+++ b/lib/ls_lex.c
@@ -64,7 +64,7 @@ typedef enum {
static const uint8_t _ch_kind_lut[32] = {
K(CH_KIND_SPACE, CH_KIND_OPER), // space !
K(CH_KIND_STR, CH_KIND_SIGIL), // " #
- K(CH_KIND_SIGIL, CH_KIND_SIGIL), // $ %
+ K(CH_KIND_SIGIL, CH_KIND_OPER), // $ %
K(CH_KIND_DIGIT, CH_KIND_REM), // & '
K(CH_KIND_OPER, CH_KIND_OPER), // ( )
K(CH_KIND_OPER, CH_KIND_OPER), // * +
@@ -102,6 +102,8 @@ static const ls_uchar _ops[][2] = {
[LS_OP_LEQ] = "<=",
[LS_OP_GEQ] = ">=",
[LS_OP_NEQ] = "<>",
+ [LS_OP_SHL] = "<<",
+ [LS_OP_SHR] = ">>",
[LS_OP_LPAREN] = "(",
[LS_OP_RPAREN] = ")",
[LS_OP_MOD] = "%",