File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -389,9 +389,13 @@ export const scalaTmLanguage: TmLanguage = {
389
389
name : 'support.function.type-of.scala'
390
390
} ,
391
391
{
392
- match : '\\b(else|if|do|while|for|yield|match|case)\\b' ,
392
+ match : '\\b(else|if|then| do|while|for|yield|match|case)\\b' ,
393
393
name : 'keyword.control.flow.scala'
394
394
} ,
395
+ {
396
+ match : `^\\s*end(?=\\s+(if|while|for|match|${ plainid } )\\s*(//.*|/\\*(?!.*\\*/\\s*\\S.*).*)?$)` ,
397
+ name : 'keyword.control.flow.end.scala'
398
+ } ,
395
399
{
396
400
match : '\\b(catch|finally|try)\\b' ,
397
401
name : 'keyword.control.exception.scala'
@@ -631,7 +635,7 @@ export const scalaTmLanguage: TmLanguage = {
631
635
// capture back quoted variables in code so special symbols inside them do not
632
636
// interfere with the rest of the rules. But don't assign any extra scope, to make them
633
637
// consistent with the rest of variables
634
- match : `${ backQuotedId } `
638
+ match : `${ backQuotedId } `
635
639
} ,
636
640
'storage-modifiers' : {
637
641
patterns : [
You can’t perform that action at this time.
0 commit comments