aboutsummaryrefslogtreecommitdiff
path: root/stm/texmacspp.ml
diff options
context:
space:
mode:
Diffstat (limited to 'stm/texmacspp.ml')
-rw-r--r--stm/texmacspp.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/stm/texmacspp.ml b/stm/texmacspp.ml
index 5bd1569ce5..3c4b8cb71e 100644
--- a/stm/texmacspp.ml
+++ b/stm/texmacspp.ml
@@ -304,7 +304,13 @@ and pp_cases_pattern_expr cpe =
xmlApply loc
(xmlOperator "alias" ~attr:["name", string_of_id id] loc ::
[pp_cases_pattern_expr cpe])
- | CPatCstr (loc, ref, cpel1, cpel2) ->
+ | CPatCstr (loc, ref, None, cpel2) ->
+ xmlApply loc
+ (xmlOperator "reference"
+ ~attr:["name", Libnames.string_of_reference ref] loc ::
+ [Element ("impargs", [], []);
+ Element ("args", [], (List.map pp_cases_pattern_expr cpel2))])
+ | CPatCstr (loc, ref, Some cpel1, cpel2) ->
xmlApply loc
(xmlOperator "reference"
~attr:["name", Libnames.string_of_reference ref] loc ::