@@ -493,13 +493,19 @@ handle_unary_op([$:|Rest], Line, _Kind, Op, Scope, Tokens) when ?is_space(hd(Res
493493 tokenize (Rest , Line , Scope , [{ kw_identifier , Line , Op }|Tokens ]);
494494
495495handle_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 .
497500
498501handle_op ([$: |Rest ], Line , _Kind , Op , Scope , Tokens ) when ? is_space (hd (Rest )) ->
499502 tokenize (Rest , Line , Scope , [{ kw_identifier , Line , Op }|Tokens ]);
500503
501504handle_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 .
503509
504510% ## Three Token Operators
505511handle_dot ([$. ,T1 ,T2 ,T3 |Rest ], Line , Scope , Tokens ) when
0 commit comments