File tree 3 files changed +57
-24
lines changed
3 files changed +57
-24
lines changed Original file line number Diff line number Diff line change @@ -651,6 +651,34 @@ export const scalaTmLanguage: TmLanguage = {
651
651
name : 'meta.bounds.scala'
652
652
} ,
653
653
comments : {
654
+ patterns : [
655
+ {
656
+ "include" : "#block-comments"
657
+ } ,
658
+ {
659
+ end : '(?!\\G)' ,
660
+ begin : '(^[ \\t]+)?(?=//)' ,
661
+ beginCaptures : {
662
+ '1' : {
663
+ name : 'punctuation.whitespace.comment.leading.scala'
664
+ }
665
+ } ,
666
+ patterns : [
667
+ {
668
+ end : '\\n' ,
669
+ begin : '//' ,
670
+ beginCaptures : {
671
+ '0' : {
672
+ name : 'punctuation.definition.comment.scala'
673
+ }
674
+ } ,
675
+ name : 'comment.line.double-slash.scala'
676
+ }
677
+ ]
678
+ }
679
+ ]
680
+ } ,
681
+ 'block-comments' : {
654
682
patterns : [
655
683
{
656
684
match : '/\\*\\*/' ,
@@ -711,7 +739,7 @@ export const scalaTmLanguage: TmLanguage = {
711
739
}
712
740
} ,
713
741
{
714
- "include" : "#comments"
742
+ "include" : "#block- comments"
715
743
}
716
744
] ,
717
745
endCaptures : {
@@ -731,32 +759,11 @@ export const scalaTmLanguage: TmLanguage = {
731
759
} ,
732
760
patterns : [
733
761
{
734
- "include" : "#comments"
762
+ "include" : "#block- comments"
735
763
}
736
764
] ,
737
765
name : 'comment.block.scala'
738
766
} ,
739
- {
740
- end : '(?!\\G)' ,
741
- begin : '(^[ \\t]+)?(?=//)' ,
742
- beginCaptures : {
743
- '1' : {
744
- name : 'punctuation.whitespace.comment.leading.scala'
745
- }
746
- } ,
747
- patterns : [
748
- {
749
- end : '\\n' ,
750
- begin : '//' ,
751
- beginCaptures : {
752
- '0' : {
753
- name : 'punctuation.definition.comment.scala'
754
- }
755
- } ,
756
- name : 'comment.line.double-slash.scala'
757
- }
758
- ]
759
- }
760
767
]
761
768
} ,
762
769
'xml-embedded-content' : {
You can’t perform that action at this time.
0 commit comments