@@ -493,13 +493,19 @@ handle_unary_op([$:|Rest], Line, _Kind, Op, Scope, Tokens) when ?is_space(hd(Res
493
493
tokenize (Rest , Line , Scope , [{ kw_identifier , Line , Op }|Tokens ]);
494
494
495
495
handle_unary_op (Rest , Line , Kind , Op , Scope , Tokens ) ->
496
- tokenize (Rest , Line , Scope , [{ Kind , Line , Op }|Tokens ]).
496
+ case strip_space (Rest , 0 ) of
497
+ { [$/ |_ ], _ } -> tokenize (Rest , Line , Scope , [{ identifier , Line , Op }|Tokens ]);
498
+ _ -> tokenize (Rest , Line , Scope , [{ Kind , Line , Op }|Tokens ])
499
+ end .
497
500
498
501
handle_op ([$: |Rest ], Line , _Kind , Op , Scope , Tokens ) when ? is_space (hd (Rest )) ->
499
502
tokenize (Rest , Line , Scope , [{ kw_identifier , Line , Op }|Tokens ]);
500
503
501
504
handle_op (Rest , Line , Kind , Op , Scope , Tokens ) ->
502
- tokenize (Rest , Line , Scope , add_token_with_nl ({ Kind , Line , Op }, Tokens )).
505
+ case strip_space (Rest , 0 ) of
506
+ { [$/ |_ ], _ } -> tokenize (Rest , Line , Scope , [{ identifier , Line , Op }|Tokens ]);
507
+ _ -> tokenize (Rest , Line , Scope , add_token_with_nl ({ Kind , Line , Op }, Tokens ))
508
+ end .
503
509
504
510
% ## Three Token Operators
505
511
handle_dot ([$. ,T1 ,T2 ,T3 |Rest ], Line , Scope , Tokens ) when
0 commit comments