Skip to content

Commit 7a0825f

Browse files
committed
Support end extension
1 parent e907413 commit 7a0825f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ export const scalaTmLanguage: TmLanguage = {
490490
name: 'keyword.control.flow.end.scala'
491491
},
492492
{
493-
match: `^\\s*(end)\\s+(?:(new)|(${idUpper}))${endOfLineMaybeWithComment}`,
493+
match: `^\\s*(end)\\s+(?:(new|extension)|(${idUpper}))${endOfLineMaybeWithComment}`,
494494
captures: {
495495
'1': {
496496
name: 'keyword.declaration.end.scala'

tests/unit/#107.test.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
// ^^^ keyword.declaration.end.scala
88
// ^^^ keyword.declaration.end.scala
99

10+
end extension
11+
// ^^^ keyword.declaration.end.scala
12+
// ^^^^^^^^^ keyword.declaration.end.scala
13+
1014
end if
1115
// ^^^ keyword.control.flow.end.scala
1216
// ^^ keyword.control.flow.end.scala

0 commit comments

Comments
 (0)