@@ -560,6 +560,15 @@ export class OCaml implements basis.ILanguage {
560
560
4 : { name : Scope . PUNCTUATION_EQUALS ( ) } ,
561
561
} ,
562
562
patterns : [
563
+ {
564
+ begin : lastWords ( Token . REC ) ,
565
+ end : alt ( capture ( this . identLower ( ) ) , lookAhead ( complement ( Class . space , Class . alpha ) ) ) ,
566
+ endCaptures : {
567
+ 0 : { name : Scope . NAME_FUNCTION ( ) } ,
568
+ } ,
569
+ patterns : [ include ( this . bindTermArgs ) ] ,
570
+ } ,
571
+ include ( this . bindTermArgs ) ,
563
572
{
564
573
begin : alt ( this . lastOps ( "!" ) , lastWords ( Token . AND , Token . EXTERNAL , Token . LET , Token . METHOD , Token . VAL ) ) ,
565
574
end : alt (
@@ -579,15 +588,6 @@ export class OCaml implements basis.ILanguage {
579
588
} ,
580
589
patterns : [ include ( this . attributeIdentifier ) , include ( this . comment ) ] ,
581
590
} ,
582
- {
583
- begin : lastWords ( Token . REC ) ,
584
- end : alt ( capture ( this . identLower ( ) ) , lookAhead ( complement ( Class . space , Class . alpha ) ) ) ,
585
- endCaptures : {
586
- 0 : { name : Scope . NAME_FUNCTION ( ) } ,
587
- } ,
588
- patterns : [ include ( this . bindTermArgs ) ] ,
589
- } ,
590
- include ( this . bindTermArgs ) ,
591
591
] ,
592
592
} ,
593
593
{
@@ -960,7 +960,7 @@ export class OCaml implements basis.ILanguage {
960
960
endCaptures : {
961
961
0 : { name : Scope . STYLE_DELIMITER ( ) } ,
962
962
} ,
963
- patterns : [ include ( this . comment ) , include ( this . pragma ) , include ( this . bindTerm ) ] ,
963
+ patterns : [ include ( this . pragma ) , include ( this . bindTerm ) , include ( this . comment ) ] ,
964
964
} ;
965
965
}
966
966
0 commit comments