Skip to content

Commit 25af05a

Browse files
committed
Fix #51: Support vals with multi-assignment
1 parent 6aa481b commit 25af05a

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export const scalaTmLanguage: TmLanguage = {
507507
}
508508
},
509509
{
510-
match: `\\b(val)\\s+(${idUpper})\\b`,
510+
match: `\\b(val)\\s+(${idUpper}(\\s*,\\s*${idUpper})*)\\b`,
511511
captures: {
512512
'1': {
513513
name: 'keyword.declaration.stable.scala'

0 commit comments

Comments
 (0)