We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6e663 commit c3df9f6Copy full SHA for c3df9f6
jscomp/syntax/src/res_printer.ml
@@ -3075,6 +3075,16 @@ and print_expression ~state (e : Parsetree.expression) cmt_tbl =
3075
Doc.soft_line;
3076
Doc.rbrace;
3077
])
3078
+ | ( {txt = "re"},
3079
+ PStr
3080
+ [
3081
+ {
3082
+ pstr_desc =
3083
+ Pstr_eval
3084
+ ({pexp_desc = Pexp_constant (Pconst_string (expr, _))}, []);
3085
+ };
3086
+ ] ) ->
3087
+ Doc.text expr
3088
| extension ->
3089
print_extension ~state ~at_module_lvl:false extension cmt_tbl)
3090
| Pexp_apply (e, [(Nolabel, {pexp_desc = Pexp_array sub_lists})])
0 commit comments