File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 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 = {
389389 name : 'support.function.type-of.scala'
390390 } ,
391391 {
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' ,
393393 name : 'keyword.control.flow.scala'
394394 } ,
395+ {
396+ match : `^\\s*end(?=\\s+(if|while|for|match|${ plainid } )\\s*(//.*|/\\*(?!.*\\*/\\s*\\S.*).*)?$)` ,
397+ name : 'keyword.control.flow.end.scala'
398+ } ,
395399 {
396400 match : '\\b(catch|finally|try)\\b' ,
397401 name : 'keyword.control.exception.scala'
@@ -631,7 +635,7 @@ export const scalaTmLanguage: TmLanguage = {
631635 // capture back quoted variables in code so special symbols inside them do not
632636 // interfere with the rest of the rules. But don't assign any extra scope, to make them
633637 // consistent with the rest of variables
634- match : `${ backQuotedId } `
638+ match : `${ backQuotedId } `
635639 } ,
636640 'storage-modifiers' : {
637641 patterns : [
You can’t perform that action at this time.
0 commit comments