File tree Expand file tree Collapse file tree 3 files changed +57
-24
lines changed Expand file tree Collapse file tree 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 = {
651651 name : 'meta.bounds.scala'
652652 } ,
653653 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' : {
654682 patterns : [
655683 {
656684 match : '/\\*\\*/' ,
@@ -711,7 +739,7 @@ export const scalaTmLanguage: TmLanguage = {
711739 }
712740 } ,
713741 {
714- "include" : "#comments"
742+ "include" : "#block- comments"
715743 }
716744 ] ,
717745 endCaptures : {
@@ -731,32 +759,11 @@ export const scalaTmLanguage: TmLanguage = {
731759 } ,
732760 patterns : [
733761 {
734- "include" : "#comments"
762+ "include" : "#block- comments"
735763 }
736764 ] ,
737765 name : 'comment.block.scala'
738766 } ,
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- }
760767 ]
761768 } ,
762769 'xml-embedded-content' : {
You can’t perform that action at this time.
0 commit comments