diff --git a/src/parser.jl b/src/parser.jl index 34666b59..9e02928e 100644 --- a/src/parser.jl +++ b/src/parser.jl @@ -1211,6 +1211,7 @@ function parse_unary(ps::ParseState) # -2*x ==> (call-i -2 * x) # +0xff ==> 0xff bump_glue(ps, kind(t2), EMPTY_FLAGS) + parse_factor_with_initial_ex(ps, mark) end return end diff --git a/test/parser.jl b/test/parser.jl index 3ac3ed36..1e4baa66 100644 --- a/test/parser.jl +++ b/test/parser.jl @@ -212,6 +212,7 @@ tests = [ "-0b10010" => "(call-pre - 0x12)" "-0o22" => "(call-pre - 0x12)" "-0x12" => "(call-pre - 0x12)" + "-1::T" => "(::-i -1 T)" # Standalone dotted operators are parsed as (|.| op) ".+" => "(. +)" ".+\n" => "(. +)"