File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,9 @@ let parser ~debug ~emitter ~path =
200
200
if isLowercaseId id then
201
201
emitter |> emitVariable ~id ~debug ~loc: p.ppat_loc;
202
202
Ast_mapper. default_mapper.pat mapper p
203
+ | Ppat_construct ({txt = Lident ("true" | "false" )} , _ ) ->
204
+ (* Don't emit true or false *)
205
+ Ast_mapper. default_mapper.pat mapper p
203
206
| Ppat_record (cases , _ ) ->
204
207
cases
205
208
|> List. iter (fun (label , _ ) -> emitter |> emitRecordLabel ~label ~debug );
@@ -214,7 +217,8 @@ let parser ~debug ~emitter ~path =
214
217
| Pexp_ident {txt = Lident id}
215
218
when snd (Utils. tupleOfLexing e.pexp_loc.loc_end)
216
219
- snd (Utils. tupleOfLexing e.pexp_loc.loc_start)
217
- > String. length id (* /"stuff" *) ->
220
+ > String. length id
221
+ (* /"stuff" *) ->
218
222
let type_ = Token. Variable in
219
223
if debug then
220
224
Printf. printf " QuotedIdent: %s %s %s\n " id
You can’t perform that action at this time.
0 commit comments