File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -224,9 +224,10 @@ let parser ~debug ~emitter ~path =
224
224
let expr (mapper : Ast_mapper.mapper ) (e : Parsetree.expression ) =
225
225
match e.pexp_desc with
226
226
| Pexp_ident {txt = Lident id}
227
- when snd (Utils. tupleOfLexing e.pexp_loc.loc_end)
228
- - snd (Utils. tupleOfLexing e.pexp_loc.loc_start)
229
- > String. length id
227
+ when id <> " =" && id <> " =="
228
+ && snd (Utils. tupleOfLexing e.pexp_loc.loc_end)
229
+ - snd (Utils. tupleOfLexing e.pexp_loc.loc_start)
230
+ > String. length id
230
231
(* /"stuff" *) ->
231
232
let type_ = Token. Variable in
232
233
if debug then
Original file line number Diff line number Diff line change @@ -126,3 +126,5 @@ let _ = x =>
126
126
| #stuff => 3
127
127
| #... QQ .somePolyEnumType => 4
128
128
}
129
+
130
+ let _ = 3 == 3 || 3 === 3
Original file line number Diff line number Diff line change 1
1
Parse tests/src/Parser.res
2
- structure items:35 diagnostics:0
2
+ structure items:36 diagnostics:0
3
3
Lident: M (0,7) Namespace
4
4
Lident: C (1,9) Namespace
5
5
Lident: Component (1,13) Namespace
You can’t perform that action at this time.
0 commit comments