File tree 4 files changed +72
-9
lines changed
4 files changed +72
-9
lines changed Original file line number Diff line number Diff line change @@ -998,29 +998,37 @@ export const scalaTmLanguage: TmLanguage = {
998
998
} ,
999
999
'using-directive' : {
1000
1000
end : '\\n' ,
1001
- begin : '^\\s*(//>)\\s*(using)[^\\S\\n]+' ,
1001
+ begin : '^\\s*(//>)\\s*(using)[^\\S\\n]+(?:(\\S+))? ' ,
1002
1002
beginCaptures : {
1003
1003
'1' : {
1004
1004
name : 'punctuation.definition.comment.scala'
1005
1005
} ,
1006
1006
'2' : {
1007
1007
name : 'keyword.other.import.scala'
1008
+ } ,
1009
+ '3' : {
1010
+ patterns : [
1011
+ {
1012
+ match : `${ idUpper } |${ backQuotedId } |${ plainid } ` ,
1013
+ name : 'entity.name.import.scala'
1014
+ } ,
1015
+ {
1016
+ match : '\\.' ,
1017
+ name : 'punctuation.definition.import'
1018
+ }
1019
+ ]
1008
1020
}
1009
1021
} ,
1010
1022
patterns : [
1011
1023
{
1012
- match : `${ idUpper } |${ backQuotedId } |${ plainid } ` ,
1013
- name : 'entity.name.import.scala'
1014
- } ,
1015
- {
1016
- match : '\\.' ,
1017
- name : 'punctuation.definition.import'
1024
+ include : '#constants'
1018
1025
} ,
1019
1026
{
1020
1027
include : '#strings'
1021
1028
} ,
1022
1029
{
1023
- include : '#constants'
1030
+ match : `[^\\s,]+` ,
1031
+ name : 'string.quoted.double.scala'
1024
1032
} ,
1025
1033
] ,
1026
1034
name : 'comment.line.shebang.scala'
You can’t perform that action at this time.
0 commit comments